Skip to content

Proxy v8 argv (including harmony) to v8/node while forwarding the remaining arguments to a custom script.

Notifications You must be signed in to change notification settings

logicalparadox/v8-argv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

v8-argv Build Status

Proxy v8 argv (including harmony) to v8/node while forwarding the remaining arguments to a custom 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');
// require('v8-argv')('--harmony', __dirname + '/_app');
bin/_app
#!/usr/bin/env node
program.parse(process.argv); // etc...

Test

npm test

Credit Due

License

WTFPL

About

Proxy v8 argv (including harmony) to v8/node while forwarding the remaining arguments to a custom script.

Resources

Stars

Watchers

Forks

Packages