import { type LoadOptions } from "https://deno.land/std@0.218.2/dotenv/mod.ts";
Properties
Optional path to .env
file. To prevent the default value from being
used, set to null
.
Set to true
to export all .env
variables to the current processes
environment. Variables are then accessible via Deno.env.get(<key>)
.
Optional path to .env.example
file which is used for validation.
To prevent the default value from being used, set to null
.
Set to true
to allow required env variables to be empty. Otherwise, it
will throw an error if any variable is empty.
Optional path to .env.defaults
file which is used to define default
(fallback) values. To prevent the default value from being used,
set to null
.
# .env.defaults
# Will not be set if GREETING is set in base .env file
GREETING="a secret to everybody"