Skip to content

HoolyWooly/green

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Green Neatly construct nodejs console arguments as an object.

Installation npm install green --save

Usage

node source.js -h world -t -foo bar -z -b 32 - will produce the following object as args in your script { h : 'world', t : true, foo : 'bar', z : true, b : 32 }

  • integer and string parsing is maintained
  • use -option without post value to set it to true.

var green = require('green').args; console.log(green); Release History 0.1.3 Tested 0.1.2 Change module name 0.1.1 Reflect readme with details 0.1.0 Initial release

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published