load-config
1.0.0 • Public • Published Load Config
Load an nconf configuration by using a file path passed as a command line option
Installation
Usage
In this example test/config.json is a path to the configuration file you wish to load
cd <project root>
node load.js --config test/config.json
load.js
var loadConfig = require('load-config')
loadConfig(function(err, config) {
should.not.exist(err, 'error loading config: ' + JSON.stringify(err))
inspect('config loaded')
var role = config.get('role')
inspect(role, 'config role')
})
Versions
Version | Downloads (Last 7 Days) | Tag |
---|
1.0.0 | 0 | latest |
Version History
Version | Downloads (Last 7 Days) | Published |
---|
1.0.0 | 0 | |
Package Sidebar
Install
Weekly Downloads