Hacker News new | past | comments | ask | show | jobs | submit login

I haven't tried in windows, but the recommended way to handle binaries is through the `bin` field in package.json (and this technique doesn't care about the shebang because it doesn't run the script directly using the OS). For example, in the `xlsx` module:

"bin": { "xlsx2csv": "./bin/xlsx2csv.njs" },

https://github.com/Niggler/js-xlsx/blob/master/package.json#...

Relevant doc: https://npmjs.org/doc/json.html#bin




Thanks, I'll take a look at that.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: