Skip to main content
Module

x/openai/core.ts>readEnv

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Go to Latest
variable readEnv
import { readEnv } from "https://deno.land/x/openai@v4.38.5/core.ts";

Read an environment variable.

Trims beginning and trailing whitespace.

Will return undefined if the environment variable doesn't exist or cannot be accessed.

type

(env: string) => string | undefined