README
margv
margv is a simple (about 2KB ~ 0.8KB gzip) node.js library for parsing process.argv
Description
Margv helps you build interactive command line tools, by parsing arguments and generating an elegant cli user interface.
Installation
npm i margv
Features
- Zero Dependencies
- opt --no-opt -param --param -param=value --param=[1,2] and other formats
- Supports array, object, Map, Set
- Very simple small library
- About 2KB min code
- Focus on usability and performance
mocha [spec..]
Run tests with Mocha
$ npm run test
Usage
Simple Example
$ touch index.js
// index.js
const margv = require('margv');
console.log(margv());
$ node ./index.js --opt=4 --width=22
{
'