Skip to content
/ base32 Public

Simple base32 encoding and decoding library for JavaScript

License

Notifications You must be signed in to change notification settings

v19-io/base32

Repository files navigation

@v19/base32

A simple base32 encoder/decoder for JavaScript.

Usage

import { encode, decode } from '@v19/base32';

const encoded = encode(new TextEncoder().encode('Hello, World!'));
console.log(encoded); // JBSWY3DPFQQFO33SNRSCC===
const decoded = new TextDecoder().decode(decode(encoded));
console.log(decoded); // Hello, World!