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

13 lines
276 B
JavaScript
Raw Normal View History

/*
2015-07-07 20:06:41 +00:00
* provider-argv.js: Test fixture for using yargs 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)().argv();
2015-07-07 20:06:41 +00:00
process.stdout.write(provider.get('something'));