UNSTABLE: Parsing and loading environment variables from a `.env` file
Classes
- missing: string[]
The keys of the missing environment variables.
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.
Parse .env file output in an object.
Stringify an object into a valid .env file format.
Interfaces
- allowEmptyValues: boolean
Set to
trueto allow required env variables to be empty. Otherwise, it will throw an error if any variable is empty. - defaultsPath: string | null
Optional path to
.env.defaultsfile which is used to define default (fallback) values. To prevent the default value from being used, set tonull. - envPath: string | null
Optional path to
.envfile. To prevent the default value from being used, set tonull. - examplePath: string | null
Optional path to
.env.examplefile which is used for validation. To prevent the default value from being used, set tonull. - export: boolean
Set to
trueto export all.envvariables to the current processes environment. Variables are then accessible viaDeno.env.get(<key>).