hi-config
v1.0.6
Published
The most simple way to config.
Downloads
8
Maintainers
Readme
Install:
npm install hi-config -g
Example:
var config = require("hi-config");
config.load("./.cfg"); // optional
config.set("font_size", 18);
console.log(config.get("font_size"));
// 18
config.set("font", { font_size: 18, font_color: 'red' });
console.log(config.get("font"));
// { font_size: 18, font_color: 'red' }