Advanced

dotenvx.get(KEY)

Programmatically get an environment variable at access/runtime.

// index.js
const dotenvx = require('@dotenvx/dotenvx')
const decryptedValue = dotenvx.get('HELLO')

console.log(decryptedValue)

This is known as Decryption at Access and is written about in the whitepaper.