double-hyphen

1.0.5 • Public • Published

double-hyphen

Node.js Argv Parser

Install

npm install double-hyphen

Use

var args = require('double-hyphen');

Command Line

$ node foo.js --a --b=1 --c=1.5 --d=.5 --e=0 --f=FALSE --g=true --h=/a/b/c
{
  a: true,
  b: 1,
  c: 1.5,
  d: 0.5,
  e: 0,
  f: false,
  g: true,
  h: '/a/b/c'
}

Readme

Keywords

Package Sidebar

Install

npm i double-hyphen

Weekly Downloads

1

Version

1.0.5

License

ISC

Last publish

Collaborators

  • dialpass