1.0.0 • Published 10 years ago
web-config-reader v1.0.0
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.
1.0.0
10 years ago