ov-settings
v0.0.9
Published
A simple recursive settings loader that allows overriding settings in seperate files
Downloads
1
Readme
ov-settings
simple settings loader
ov-settings is a simple settings loader that allows you to override default settings in another file.
Usage
settings.default.json
{
"a": 1,
"b": 2,
"override": "settings.json"
}
settings.json
{
"b": 3
}
app.js
var OvSettings = require('ov-settings');
var loader = new OvSettings.Settings('settings.default.json');
var settings = loader.getSettings();
// settings are {a: 1, b:3}