mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-14 19:42:49 +00:00
updated package.json
This commit is contained in:
17
node_modules/nconf/test/fixtures/scripts/nconf-hierarchical-file-argv.js
generated
vendored
Normal file
17
node_modules/nconf/test/fixtures/scripts/nconf-hierarchical-file-argv.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
* nconf-hierarchical-file-argv.js: Test fixture for using optimist defaults and a file store with nconf.
|
||||
*
|
||||
* (C) 2011, Nodejitsu Inc.
|
||||
* (C) 2011, Sander Tolsma
|
||||
*
|
||||
*/
|
||||
|
||||
var path = require('path'),
|
||||
nconf = require('../../../lib/nconf');
|
||||
|
||||
nconf.argv();
|
||||
nconf.add('file', {
|
||||
file: path.join(__dirname, '../hierarchy/hierarchical.json')
|
||||
});
|
||||
|
||||
process.stdout.write(nconf.get('something') || 'undefined');
|
||||
Reference in New Issue
Block a user