Resolve values synchronously without mutating the environment
dotenvx.get(key, options)
Usage
Resolve values synchronously without changing the environment. get(key, options) returns a string or undefined. With no key, get(undefined, options) returns a resolved object. File and custody lookups block. Fatal or strict loading errors throw synchronously; nonfatal diagnostics are reported while remaining values can still be returned. get does not return a Promise.
const dotenvx = require('@dotenvx/dotenvx')
const value = dotenvx.get('HELLO')
const values = dotenvx.get()
Accepts the config options, plus all and format.