import { Env } from "https://deno.land/x/env@v3.0.3/env.js";
A utility for interacting with environment variables
Properties
Methods
first(keys, defaultValue)
get(key, defaultValue)
require(key)
Retrieves an environment variable. If the environment variable does not exist or is an empty string, then it throws an error.
requireFirst(keys)
Retrieves the first environment variable found in a list of environment variable names and throws an error if none of the variables are found.