Releases: dorightdigital/js-config
Releases · dorightdigital/js-config
Improved use cases for node/io (also available in the browser)
Improved use cases for node/io (also available in the browser)
readFromObject now allows you to use one name on environment variables and another name in your codebase. That's important for things like passwords - your environment variable may well be COMPANY_PROJECT_DB_PASS but your codebase might want to use config.get('db.password'). Previously you'd have to use config.get('COMPANY_PROJECT_DB_PASS') which leads to tightly coupled code & configuration - that was not a good thing.