Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 354 Bytes

README.md

File metadata and controls

14 lines (10 loc) · 354 Bytes

@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!