UNPKG

node-elsevier

Version:
23 lines (18 loc) 778 B
'use strict'; /** * This module is responsible of the ezPAARSE configuration parameters * it will load it from the default config.json file but these parameters * can be overrided by the user through a config.local.json file or * through the environement variables or through the command line parameter */ var nconf = require('nconf'); var path = require('path'); nconf.argv() // try to get parameter from the command line // then from the environment .env() // then from the local config .file('local', path.join(__dirname, '../config.local.json')) // then (default value) from the standard config.json file .file('default', path.join(__dirname, '../config.json')); // return all the captured key/values module.exports = nconf.get();