Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
function getRequiredEnv
Re-export
import { getRequiredEnv } from "https://deno.land/x/fathym_everything_as_code@v0.0.351/src/src.deps.ts";

Returns the environment variable with the given key after ensuring that it's been set in the current process. This can be used when defining a custom OAuth configuration.

Examples

Example 1

import { getRequiredEnv } from "https://deno.land/x/deno_kv_oauth@$VERSION/mod.ts";

getRequiredEnv("HOME"); // Returns "/home/alice"

Parameters

key: string

Returns

string