Parse object to cli arguments. It does exactly the opposite of what minimist does.
npm install negative
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');
MIT © EGOIST