hashbangify - make your node scripts executable!
hashbangify is on
[sudo] npm install hashbangify -g
hashbangify myScript.js [interpreter]
interpreter defaults to
This script will do several things.
- find where your interpreter is installed by calling
- read your target script into memory.
- delete it.
- open a new file with the same name, starting with the appropriate hashbang.
- write your target script back to the file.
chmod 0755is then called prior to exit.