minimal-cli-parser
The command-line parser used by the package minimal-cli.
- Useful for parsing
process.argv
- Supports regular flags
--flag
and shorthand flags-f
- Automatically infers variable types by default
- Converts hyphenated flags to camel case
Installation
$ npm install minimal-cli-parser --save
Usage
const parser = ;const args = 'command' '--alpha' '1' '--beta' '-g' '2' '--delta=value';const parsed = ; console;
Output:
License
Copyright (c) 2019 Josh Crozier