How to use the required function from nconf
Find comprehensive JavaScript nconf.required code examples handpicked from public code repositorys.
42 43 44 45 46 47 48 49 50 51
return nconf.get(); } // Get single item, return value as is if (typeof keys === 'string') { nconf.required([keys]); return nconf.get(keys); } // Multiple keys provided, return object
24
2
21
+ 5 other calls in file
58 59 60 61 62 63 64 65 66 67
remove: d => { nconf.remove(encrypt(d)); return module.exports; }, required: d => { nconf.required(encrypt(d)); return module.exports; }, reset: () => { Object.keys(nconf.stores).forEach(store => { delete nconf.stores[store]; });
0
3
2