shama / napa

:wine_glass: A helper for installing stuff without a package.json with npm.
MIT License
413 stars 34 forks source link

Is there a way to download a binary file? #51

Open ghost opened 9 years ago

ghost commented 9 years ago

For example, I'd like to use napa to download a binary: https://github.com/kreuzwerker/envplate/releases/download/v0.0.8/ep-linux

Is it possible to do this? If not, I think it would be a nice feature to be able to download single files with napa.

shama commented 9 years ago

Currently it only handles packages. Where would the binary be installed to?

ghost commented 9 years ago

What feels intuitive to me for this functionality would be for any URL that didn't resolve to an archive file, create a directory in node_modules with the name from package.json and put the file in there.

For example in my project I then copy that bin into a docker container in its /usr/bin. If I could depend on an arbitrary URL I can completely avoid installing curl, updating apt-get etc in the container.

iambumblehead commented 8 years ago

I'm trying to include this file as part of my install, but napa is not retrieving it correctly,

https://github.com/away3d/away3d-core-fp11/releases/download/v4.1.6/away3d-core-fp11_4_1_6.swc

tuananh commented 5 years ago

this would be quite straight forward to implement right? would a pr be accepted ?

edit: looks like #85 is already open. @shama can you take a look?