Skip to content

Instantly share code, notes, and snippets.

@sergn-n
Created August 23, 2015 15:36
Show Gist options
  • Save sergn-n/45d27a2344db2dfe7b28 to your computer and use it in GitHub Desktop.
Save sergn-n/45d27a2344db2dfe7b28 to your computer and use it in GitHub Desktop.
enclose-nconf-err
var nconf = require('nconf');
nconf.argv();
console.log('foo: ' + nconf.get('foo'));
node enclose.js .\app.js -l info -c .\encl-config.js > enclose.log
module.exports = {
scripts: "./node_modules/nconf/lib/nconf/stores/*.js"
};
{
"name": "enclose-test",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node ./app.js"
},
"dependencies": {
"nconf": "~0.7.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment