0.2.1 • Published 7 years ago
hugla-config v0.2.1
HuglaConfig
Hugla web framework's node back-end config module
Usage
Here is a descriptive example of using HuglaConfig
// require the module
const HuglaConfig = require('hugla-config');
// instantiate
const huglaConfig = new HuglaConfig();
// add sources
huglaConfig.addFile(configFilePath);
huglaConfig.addEnv();
huglaConfig.addConfig({ 'foo': 'bar' });
// and use
console.log(huglaConfig.config.foo);