Skip to content

Parse and structure command line argument options.

Notifications You must be signed in to change notification settings

joegesualdo/parse-argv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

parseArgv

Parse and structure command line argument options.

Install

$ npm install --save parse-argv

Usage

$ node examples/example.js -a -b22 -xyz --greetings=hello --name=bob -z meow -v boom -s
var parseArgv = require("parse-argv");

parseArgv(process.argv.slice(2))
/*
{ a: true,
  b: 22,
  x: true,
  y: true,
  z: 'meow',
  greetings: 'hello',
  name: 'bob',
  v: 'boom',
  s: true }
*/

About

Parse and structure command line argument options.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published