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
Go to Latest
variable toBase64
import { toBase64 } from "https://deno.land/x/openai@v4.62.1/core.ts";

Encodes a string to Base64 format.

type

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