simpleArgsParser
v1.0.3
Published
zero dependency, simple arguments parser
Downloads
4
Readme
simpleArgsParser
zero dependency,simple arguments parser, written in typescript with functional programming style.
example
var argv = require('simpleArgsParserst').argv;
var argsObj = argv(process.argv.slice(2));
console.dir(argsObj);
##ES6
import {argv} from 'simpleArgsParser';
const argsObj = argv(process.argv.slice(2));
console.dir(argsObj);
##testing
$ node test/test.js --hello=world --hi=world
{ hello:'world',hi:'world' }