Use the synchronous alias of get
dotenvx.getSync(key, options)
Usage
getSync is the same function as get: getSync === get. It accepts the same arguments, returns the same direct values, and throws synchronously.
const dotenvx = require('@dotenvx/dotenvx')
const value = dotenvx.getSync('HELLO')