1.0.3 • Published 8 years ago
sanghiutilities v1.0.3
Sanghi Utilities
A small library return arguments(passed using '--') and their values.
Installation
npm install sanghiutilities --save
Usage
node taskname --param1 value1 --param2 value2
var sanghiUtil = require('sanghiutilities');
console.log(sanghiUtil.getAllKeyValues());
//{"param1":"value1","param2":"value2"}
console.log(sanghiUtil.getValueByKey('param1'));
//value1
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style.
Release History
- 1.0.0 Refactor to avoid double unescape and to use npm scripts instead of makefile. Also add link to associated blog post.
- 0.1.0 Initial release