Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/env/env.js>Env#require

A utility for verifying environment variables are present
Latest
method Env.prototype.require
import { Env } from "https://deno.land/x/env@v3.0.5/env.js";

Retrieves an environment variable. If the environment variable does not exist or is an empty string, then it throws an error.

Parameters

key

The environment variable name to retrieve.