Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
function encodeBase64
import { encodeBase64 } from "https://deno.land/x/fathym_everything_as_code@v0.0.329-integration/src/src.deps.ts";

Converts data into a base64-encoded string.

Examples

Example 1

import { encodeBase64 } from "https://deno.land/std@0.224.0/encoding/base64.ts";

encodeBase64("foobar"); // "Zm9vYmFy"

Parameters

data: ArrayBuffer | Uint8Array | string

Returns

string