1.0.11 • Published 7 years ago
bin-shebang v1.0.11
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