Skip to content

bowen31337/simpleArgsParser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simpleArgsParser

zero dependency,simple arguments parser, written in typescript with functional programming style.

Build Status CircleCI codecov

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

$ npm test