negative
v0.0.2
Published
Parse object to cli arguments.
Downloads
23
Readme
negative
Parse object to cli arguments. It does exactly the opposite of what minimist does.
Installation
npm install negative
Example
import negative from 'negative';
// simple
// return `entry.js dist.js --verbose -o output.js --no-quiet`
negative({
_: ['entry.js'],
verbose: true,
o: 'output.js',
noQuiet: true
});
// with a command prefix
// return `mocha test.js --require babel-core/registry`
negative({
_: ['test.js'],
require: 'babel-core/registry'
}, 'mocha');
License
MIT © EGOIST