std/encoding/base64.ts

Deno standard library
Go to Latest
function encode
import { encode } from "https://deno.land/std@0.145.0/encoding/base64.ts?s=encode";

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

Parameters

data: ArrayBuffer | string[src]