A fast and minimal implementation of Clockwork Base32 for TypeScript.
npm install @uzmoi/clockwork-base32
# or
deno add jsr:@uzmoi/clockwork-base32
import * as base32 from "@uzmoi/clockwork-base32";
const array = Uint8Array.from("Hello, world!", (c) => c.charCodeAt());
base32.encode(array); // => "91JPRV3F5GG7EVVJDHJ22"
base32.decode("91JPRV3F5GG7EVVJDHJ22"); // => Same as `array`