bin-shebang
v1.0.11
Published
Add an Unix-style shebang line to pkg.main and save it to pkg.bin
Downloads
6
Maintainers
Readme
bin-shebang
Add an Unix-style shebang line (#!/usr/bin/env node
) to the file specified by 'main'
in package.json
, and save it at the path specified by 'bin'
.
Usage
bin-shebang
is a small build helper that will stage an executable file for an npm package, based on the values of 'main'
and 'bin'
in package.json
.
Example configuration:
{
"main": "src/index.js",
"bin": "bin/index.js",
"scripts": {
"build": "bin-shebang"
}
}
License
MIT