Get

Programmatically get an environment variable at access/runtime.

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

async function main() {
  const decryptedValue = await dotenvx.get('HELLO')

  console.log(decryptedValue)
}

main()

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

Options