Argv Config File
Pass a js or json configuration file on the command line to a Node.js application. Configuration merging is done using config-extend.
Install
npm install --save argv-config-file
Usage
app.js
const argvConfigFile = ; let config = ;
my-config.js
moduleexports = // Custom config foo: 'array' 'override'
my-config.json
Run
node app.js -c /some/directory/my-config.jsnode app.js --config=/some/directory/my-config.json
Config Value
foo: 'array' 'override' biz: 'baz'