Module

std/dotenv/mod.ts

The Deno Standard Library
Latest
import * as mod from "https://dotland.deno.dev/std@0.224.0/dotenv/mod.ts";

Parses and loads environment variables from a .env file into the current process, or stringify data into a .env file format.

Classes

Error thrown in {@link load} and {@link loadSync} when required environment variables are missing.

Functions

Load environment variables from a .env file. Loaded variables are accessible in a configuration object returned by the load() function, as well as optionally exporting them to the process environment using the export option.

Works identically to {@link load}, but synchronously.

Parse .env file output in an object.

Stringify an object into a valid .env file format.

Interfaces

Options for {@link load} and {@link loadSync}.