The initial object defines what values can be set.
According to the above the following environment variables will be considered:
DATABASE_HOSTDATABASE_PORT
If you provide a prefix option the environment variables must start with this
prefix. e.g. when the prefix is MYORG, the following env vars are tested:
MYORG_DATABASE_HOSTMYORG_DATABASE_PORT
Script:
import objenv from 'objenv'const options = { prefix: 'myorg', seperator: '_' // is the default};objenv(config, options, (key, value) => { console.log('Env key %s found value is now %s', key, value)});console.log(config);