node-config
About
This is a simple module to easily manage configurations for NodeJS applications. You can extend configurations, so it's easy to override other configurations from a base file for example
Usage:
const config = ; config; // load config.const configObj = config; // access data from the config objectconfigObj;configObj;
Config files can extend other config files:
base.js:
moduleexports = version: '1.2.4' name: 'foo';
development.js:
moduleexports = extends: 'base' name: 'bar';