Module

x/oak/deps.ts>encodeBase64

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Extremely Popular
Go to Latest
function encodeBase64
import { encodeBase64 } from "https://dotland.deno.dev/x/oak@v13.0.1/deps.ts";

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