如果你用过 minimist, 那你就知道 negative 做的是刚好相反的事 XD
https://github.com/egoist/negative 比如:
import negative from 'negative';
// return `command entry.js --verbose -o output.js`
negative({
_: ['entry.js'],
verbose: true,
o: 'output.js'
}, 'command');
如果你用过 minimist, 那你就知道 negative 做的是刚好相反的事 XD
https://github.com/egoist/negative 比如:
import negative from 'negative';
// return `command entry.js --verbose -o output.js`
negative({
_: ['entry.js'],
verbose: true,
o: 'output.js'
}, 'command');