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

x/cliffy/ansi/deps.ts>encodeBase64

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
function encodeBase64
import { encodeBase64 } from "https://deno.land/x/cliffy@v0.17.0/ansi/deps.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