1.0.3 • Published 8 years ago

simpleArgsParser v1.0.3

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

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' }
1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago