https://github.com/kamalkhan/green
Neatly construct nodejs console arguments as an object.
https://github.com/kamalkhan/green
Last synced: 7 days ago
JSON representation
Neatly construct nodejs console arguments as an object.
- Host: GitHub
- URL: https://github.com/kamalkhan/green
- Owner: kamalkhan
- License: mit
- Created: 2014-07-14T07:21:01.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-07-14T10:18:57.000Z (almost 11 years ago)
- Last Synced: 2025-03-28T20:41:23.189Z (25 days ago)
- Language: JavaScript
- Homepage:
- Size: 160 KB
- Stars: 2
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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