add-shebang

Adds node shebang to all your bin files declared in your package.json

Package no longer maintained.
Last updated 3 years ago by danielpanpm .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install add-shebang 
SYNC missed versions from official npm registry.

add-shebang

Adds node shebang to all your bin files declared in your package.json

$ cat package.json
{
  "bin": { // works with "bin": "dist/cli.js" too
    "my-app": "dist/cli.js"
  },
  "scripts": {
    "build": "tsc && add-shebang"
  }
}
$ npm run build
...
$ cat dist/cli.js
#!/usr/bin/env node
// rest of your code, without this comment ;-)

Current Tags

  • 0.1.0                                ...           latest (3 years ago)

1 Versions

  • 0.1.0 [deprecated]           ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 16
Last Day 2
Last Week 2
Last Month 58
Dependencies (1)
Dev Dependencies (6)

Copyright 2014 - 2021 © npmmirror.com |