repo
replacements.fyi

// package

base64-js

type: "module"

// preferences

// replacements (1)

snippet::base64

Simple or drop-in replacement

This package is no longer necessary. Every modern runtime provides a way to convert byte array to and from base64.

// example

// From base64 to Uint8Array
const bytes = Uint8Array.fromBase64(base64);
// From Uint8Array to base64
const base64 = bytes.toBase64();