Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
function getRequiredEnv
Re-export
import { getRequiredEnv } from "https://deno.land/x/fathym_everything_as_code@v0.0.369/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