Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 409 Bytes

README.md

File metadata and controls

13 lines (9 loc) · 409 Bytes

Base64x: Base64 encoder/decoder with customizable lookup tables

Basic Usage:

import { Base64x } from 'base64x';

const base64x = new Base64x('abcdefghijklmnopqrstuvwxyz+/0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ');
const encoded = base64x.encode("arbitrary string");

console.log(encoded);                 // "yxj6+xrMyxjTihnO0A9IzK=="
console.log(base64x.decode(encoded)); // "arbitrary string"