Skip to main content

@std/dotenv@0.225.3
Built and signed on GitHub Actions

UNSTABLE: Parsing and loading environment variables from a `.env` file

This package works with DenoIt is unknown whether this package works with Bun
This package works with Deno
It is unknown whether this package works with Bun
JSR Score
94%
Published
a day ago (0.225.3)

default

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

f
load

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.

I
LoadOptions

Options for load and loadSync.

f
loadSync

Works identically to load, but synchronously.

f
parse

Parse .env file output in an object.

f
stringify

Stringify an object into a valid .env file format.

f
parse

Parse .env file output in an object.

f
stringify

Stringify an object into a valid .env file format.