Minimist2
Minimist2 is a rewrite of the popular Minimist Javascript library for argument parsing. The library aims to be a drop-in replacement with matching API footprint. It passes all original Minimist unit tests.
Minimist2 is written in TypeScript targetting ES6.
Installing
npm install minimist2
Development
- Checkout the codegit clone git@github.com:berdon/minimist2.gitnpm install
- Develop
- Run testsnpm test
- Submit a pull request
Using
var argv = processargv;consoledirargv;
$ node example/parse.js -a beep -b boop
$ node example/parse.js -x 3 -y 4 -n5 -abc --beep=boop foo bar baz