Externalized Config
A module for loading externalized configuration files in a Node.js app.
This module will attempt to load a JSON configuration file in the following manner.
- Look for an environment variable in the format "{{appname}}_CONFIG"
- Look for the existence of a file at the location "$HOME/.config/{{appname}}.json"
- Look for a process augment "--config"
- Look for a project local file at the location of "/{{appname}}.json"
This module will provide options to override the pre-defined formats and locations listed above.