link-bin
Make bin scripts work local npm dependencies.
npm install link-bin
Should be used as a post-install npm hook
Usage
Let's say you wanna put the following atom-shell app on npm
#!/usr/bin/env atom-shell// this is an atom-shell app that just shows an empty screenvar app =var BrowserWindow =app
Luckily atom-shell is installable through npm.
If you save the above file as app.js
you can then create the following package.json
file
If you publish the above program to npm other people will be able to npm install -g my-atom-shell-app
and run my-atom-shell-app
to execute the atom-shell app (even if they don't have atom-shell installed already)
To test it you can also run npm install -g .
in the folder where you added the above app.js
and package.json
files.
License
MIT