@opt/nopt
v0.1.1
Published
Plugin for @opt/parse making nopt the parser
Downloads
4
Readme
@opt/nopt
Plugin for @opt/parse making nopt the parser.
See @opt/parse
See @opt/nopt
See @use/core
Install
npm install @opt/nopt --save
Usage
var parse = require('@opt/parse')
// choose the internal parser as `nopt`
parse.use('@opt/nopt')
// optionally add other plugins by package name:
parse.use('@opt/words', '@opt/require')
// then use parse as you would use `nopt`,
// plus any changes made possible by the plugins added
options = parse({}, {}, process.argv, 2)