Argify
A very small bit of code that I got tired of typing again and again.
It parses command line arguments formatted like: $ node ./yourscript.js --blargh=honk
Install
npm install argify
npm install ben-bradley/argify
Use
// yourscript.jsvar args = ; console; // stdout: { blargh: 'honk' }console; // stdout: 'honk'console; // stdout: true
$ node ./yourscript.js --blargh=honk --foo
Version
- 0.0.3 - added boolean options
- 0.0.2 - fixed package.json keywords, added travis bling, standardized structure
- 0.0.1 - initial drop