Extremely Popular
Latest
function base64.encodeBase64
import { base64 } from "https://dotland.deno.dev/x/postgres@v0.19.3/tests/test_deps.ts";
const { encodeBase64 } = base64;

Converts data into a base64-encoded string.

Examples

Example 1

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

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

Parameters

data: ArrayBuffer | Uint8Array | string

Returns

string