You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Michael Winter 555e2c196e | 5 years ago | |
---|---|---|
.. | ||
README.md | 5 years ago | |
index.js | 5 years ago | |
package.json | 5 years ago |
README.md
the-argv
The part of argv you want
No need to remember how to get those cli arguments anymore...
Installation
Install the-argv
using npm:
npm install --save the-argv
Usage
Module usage
var theArgv = require('the-argv');
// process.argv = ['/usr/local/bin/node', 'index.js', '--flag', 'arg']
console.log(theArgv());
// outputs: ['--flag', 'arg']
Example with minimist
var argv = require('minimist')(require('the-argv')());
// ...
License
MIT