Usage
wt-config module allows you to share your configurations inside you project as a singoptionallyof access. In addition it allows you to share configurations with other node modules without needing to embbed the configuration in those modules.
Instalation
npm i wt-config --save
In main project set configurations
let Config = ;Configset = ;//optionaly merge with default configurationsConfig;
In any other place in project or node modules
const config = get;/*now config will contain the configurations set in main project*/
Check environment within the project
Config;
When runnig the application set the environment variable NODE_ENV=PRODUCTION|STAGING|DEVELOPMENT