2012-06-13 07:14:56 +00:00
|
|
|
/*
|
|
|
|
* nconf-hierarchical-load-merge.js: Test fixture for loading and merging nested objects across stores.
|
|
|
|
*
|
2014-11-26 06:31:48 +00:00
|
|
|
* (C) 2012, Charlie Robbins and the Contributors.
|
2012-06-13 07:14:56 +00:00
|
|
|
* (C) 2012, Michael Hart
|
|
|
|
*
|
|
|
|
*/
|
2014-11-26 06:31:48 +00:00
|
|
|
|
2012-06-13 07:14:56 +00:00
|
|
|
var path = require('path'),
|
|
|
|
nconf = require('../../../lib/nconf');
|
|
|
|
|
|
|
|
nconf.argv()
|
|
|
|
.file(path.join(__dirname, '..', 'merge', 'file1.json'));
|
|
|
|
|
|
|
|
process.stdout.write(JSON.stringify({
|
|
|
|
apples: nconf.get('apples'),
|
|
|
|
candy: nconf.get('candy')
|
|
|
|
}));
|