$ gnpm install minimost
--foo-bar foo
results in { fooBar: 'foo' }
--
, eg: -- npm test
results in { '--': ['npm', 'test'] }
./bin foo -w
results in { input: ['foo'], flags: { w: true } }
This is similar to meow, but I sometime just want to parse argv without being a real CLI app.
yarn add minimost
const minimost = require('minimost')
minimost(process.argv.slice(2), options)
minimist options, options['--']
is true
by default here.
git checkout -b my-new-feature
git commit -am 'Add some feature'
git push origin my-new-feature
minimost © egoist, Released under the MIT License.
Authored and maintained by egoist with help from contributors (list).
egoist.sh · GitHub @egoist · Twitter @_egoistlily
Copyright 2013 - present © cnpmjs.org | Home |