Package Exports
- process-yargs-parser
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (process-yargs-parser) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
process.argv.parser
Lightweight Node.js Arguments Parser with 0 Dependencies 🚀 and many yargs-parser configurations disabled by default.
Usage
npm i process.argv.parser --save
const argv = require('process.argv.parser')(process.argv.slice(2))
console.log(argv)
node ./example.js --foo=33 --bar hello
{ _: [], foo: 33, bar: 'hello' }
or parse a string!
const argv = require('process.argv.parser')('--foo=99 --bar=33')
console.log(argv)
{ _: [], foo: 99, bar: 33 }
READ more usages in index.test.js.
Feature
- duplicate-arguments-array: default false
- boolean-negation: default false
- boolean-negation: default false