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

x/dtils/deps.ts>base64.encodeBase64

The best unofficial library of utilities for Deno applications
Go to Latest
function base64.encodeBase64
import { base64 } from "https://deno.land/x/dtils@2.4.0/deps.ts";
const { encodeBase64 } = base64;

Encodes a given Uint8Array, ArrayBuffer or string into RFC4648 base64 representation

Parameters

data: ArrayBuffer | Uint8Array | string

Returns

string