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

x/openai/core.ts>toBase64

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

Encodes a string to Base64 format.

type

(str: string | null | undefined) => string