yajsonfig
Jet Another simple json configuration package for your projects.
Usage
const config = __dirname + '/config.json'; console;
Extras
Not many.
You can overwrite the values of the json file based on environment variables.
For example, given the following json file:
Setup the environment variable SIMPLECONFIG
to a prefix of your choice:
export SIMPLECONFIG='MY_PROJECT_'
And then setup as many variables as you want:
export MY_PROJECT_directory=/tmp/another
Your config object will come like: