get(undefined, { format: … })

Format all resolved values as a string

Node.js get

dotenvx.get(undefined, { format: 'eval-export' })

Usage

Supported formats are eval, eval-export, shell, and colon. Omit the key to use formatting; a supplied key returns its value directly. Omit format to receive an object.


const dotenvx = require('@dotenvx/dotenvx')
const result = dotenvx.get(undefined, { format: 'eval-export' })

markdown