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

x/env/env.js>Env#requireFirst

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

Retrieves the first environment variable found in a list of environment variable names and throws an error if none of the variables are found.

Parameters

keys

An array of environment variable names.