node-args-parser
Node.js command line arguments parser.
Install the module
$ npm install node-args-parser
Usage
Require the module and pass it the process.argv
arguments array.
const args = processargv console
An object
is returned having a key for each argument given.
For example:
$ node ./script.js -x 1 -y 2
Will return:
$ node ./script.js -f -r resource
Will return:
if argsf console
Tests
Run npm test