Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/oak_commons/deps.ts>base64.encode

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

CREDIT: https://gist.github.com/enepomnyaschih/72c423f727d395eeaa09697058238727 Encodes a given Uint8Array, ArrayBuffer or string into RFC4648 base64 representation

Parameters

data: ArrayBuffer | string

Returns

string