nconf-lite/test/fixtures/scripts/provider-env.js

12 lines
280 B
JavaScript
Raw Normal View History

/*
* provider-argv.js: Test fixture for using process.env defaults with nconf.
*
2014-11-26 06:31:48 +00:00
* (C) 2011, Charlie Robbins and the Contributors.
*
*/
2014-11-26 06:31:48 +00:00
var nconf = require('../../../lib/nconf');
var provider = new (nconf.Provider)().env();
process.stdout.write(provider.get('SOMETHING'));