1.0.0 • Published 10 years ago

web-config-reader v1.0.0

Weekly downloads
6
License
-
Repository
-
Last release
10 years ago

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.