izi-config
Simple configuration management module for node.js projects.
Installation
$ npm install git+https://bitbucket.org/izisoft/config-js
Features
- Support detection of execution phase based on process arguments
- Support of patching common configuration with phase specific settings
- Possibility of patching public configuration with local one
- Configuration can be passed as path to json file or directly as an object
Examples
var config = require('izi-config');
config.init('./config.json', './local.json', { phase_arg: 'm' });
node index.js -m prod