Skip to content

Releases: dorightdigital/js-config

Improved use cases for node/io (also available in the browser)

03 Apr 13:53
Compare
Choose a tag to compare

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.