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

x/pbkit/core/runtime/base64.ts>encode

Protobuf toolkit for modern web development
Go to Latest
function encode
import { encode } from "https://deno.land/x/pbkit@v0.0.55/core/runtime/base64.ts";

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

Parameters

data: ArrayBuffer | string

Returns

string