v8-argv
v0.2.0
Published
Proxy v8 argv (including harmony) to v8/node while forwarding the remaining arguments to a custom script.
Downloads
6,512
Readme
v8-argv
Proxy v8 argv (including harmony) to v8/node while forwarding the remaining arguments to a custum script.
Installation
v8-argv
is available on npm.
npm install v8-argv
Usage
- @param {String} path to resolve to actual bin (repeatable)
bin/app
#!/usr/bin/env node
require('v8-argv')(__dirname, '_app');
bin/_app
#!/usr/bin/env node
program.parse(process.argv); // etc...
Test
npm test