Allows you to read in a config file and selectively overwrite values based off of environment variables.
Config can be a file or just a dictionary
Given the following config file:
And the following environment variables:
ENVCONFIG_name = "newnameval" ENVCONFIG_complex.num = "500" ENVCONFIG_newvariable = "new variable value" ENVCONFIG_newcomplex.newnum = "1000.5"
Then running the following code:
const override_config = ;const new_config = ;console;
Will print the following:
- Handle arrays
- Handle defining "type" of value in env var. Right now everything is a string