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

x/fresh/src/server/serializer.ts>b64encode

The next-gen web framework.
Extremely Popular
Go to Latest
function b64encode
import { b64encode } from "https://deno.land/x/fresh@1.5.4/src/server/serializer.ts";

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

Parameters

buffer: ArrayBuffer

Returns

string