This package has been deprecated

Author message:

Package no longer maintained.

add-shebang

0.1.0 • Public • Published

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 ;-)

/add-shebang/

    Package Sidebar

    Install

    npm i add-shebang

    Weekly Downloads

    205

    Version

    0.1.0

    License

    ISC

    Unpacked Size

    4.07 kB

    Total Files

    5

    Last publish

    Collaborators

    • danielpanpm