Choose the environment object to read and populate
dotenvx.config({ envs: [{ type: 'env', value: 'HELLO=World' }], processEnv: target })
Usage
config reads and updates this object instead of process.env. get and parse read it for resolution without modifying it. Include PATH and provider settings when delegated custody is needed.
const dotenvx = require('@dotenvx/dotenvx')
const target = {}
dotenvx.config({ envs: [{ type: 'env', value: 'HELLO=World' }], processEnv: target })