hugla-config

0.2.1 • Public • Published

HuglaConfig

Hugla web framework's node back-end config module

Build Status Coverage Status

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);

License

MIT

Package Sidebar

Install

npm i hugla-config

Weekly Downloads

2

Version

0.2.1

License

MIT

Last publish

Collaborators

  • noosxe