clue
JSON based configuration loader and parser.
Install
To install, just run the following command:
$ npm install clue --save
It will be installed in your node_modules/
directory and will added a dependency entry in package.json
.
Usage
The module would help to parse your custom JSON file and load the configuration successfully into the buffer. However, you could use alternative methods to get value by dot notation
or it will return the default respectively.
;(function() {
var Clue = require('clue');
var clue = new Clue('/path/to/json/file');
var name = clue.get('name');
var name = clue.get('name', 'ArkeologeN');
var nested = clue.get('script.test');
})();
Author
Wrapper has been developed by Hamza Waqas