negative

Parse object to cli arguments.

MIT License

Downloads
17
Stars
3
Committers
1

negative Build Status

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