kc-rarg
v1.0.4
Published
[nodejs] Read cli arguments.
Downloads
5
Maintainers
Readme
Rarg
[nodejs] Read cli arguments.
Install
npm install kc-rarg
Use
var rdarg = require('kc-rarg');
// @param s: search string
// @return:
// - the next non-dashed argument (considered as value).
// - true if arg found but no value
// - false if argument not found
var arg = rarg('-v');
console.log(arg);