Skip to content

Latest commit

 

History

History
26 lines (23 loc) · 619 Bytes

README.md

File metadata and controls

26 lines (23 loc) · 619 Bytes

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