node package manager

web-config-reader

Web config reader

A small module to read web configuration from either .NET .config files, JSON files, and/or objects such as process.env. Supports reading from multiple sources, to support local overrides of global config.

Example

var getConfig = require('web-config-reader');
 
var sources = ['web.config', 'local.config', process.env];
var config = getConfig(sources, __dirname);

This will produce one object with all the settings from web.config as the base. Any settings in local.config will be applied as overrides, as will environment variables.