Skip to content

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

Latest
Compare
Choose a tag to compare
@nataliecarey nataliecarey released this 03 Apr 13:53
· 8 commits to master since this release

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.