Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/wasmbuild/lib/deps.ts>base64.encode

Build tool to use Rust code in Deno and the browser.
Go to Latest
function base64.encode
import { base64 } from "https://deno.land/x/wasmbuild@0.14.1/lib/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