Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback


Deno standard library
Go to Latest
import * as mod from "";

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


Error thrown in load and loadSync when required environment variables are missing.


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 load, but synchronously.

Parse .env file output in an object.

Stringify an object into a valid .env file format.