Skip to main content
Module

x/oak_commons/deps.ts>base64.encodeBase64

A set of APIs for handling HTTP and HTTPS requests with Deno 🐿️ 🦕
Go to Latest
function base64.encodeBase64
import { base64 } from "https://deno.land/x/oak_commons@0.6.0/deps.ts";
const { encodeBase64 } = base64;

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