LoadOptions

import { LoadOptions } from "jsr:@ende/dotenv";

interface ยท deprecated

interface LoadOptions

Options for load and loadSync.

Deprecated.

This will be removed in 0.227.0. Use the --env-file flag or parse instead. See the module documentation for migration notes.

Properties

envPath

envPath?: string | URL | null

Optional path to .env file. To prevent the default value from being used, set to null.

Default: "./.env"

export

export?: boolean

Set to true to export all .env variables to the current processes environment. Variables are then accessible via Ende.env.get(<key>).

Default: false

Source