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

12 lines
278 B
JavaScript
Raw Normal View History

/*
* provider-argv.js: Test fixture for using optimist 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();
process.stdout.write(provider.get('something'));