@uzmoi/clockwork-base32
v1.0.2
Published
A fast and minimal implementation of Clockwork Base32 for TypeScript
Downloads
118
Readme
clockwork-base32
A fast and minimal implementation of Clockwork Base32 for TypeScript.
Install
npm install @uzmoi/clockwork-base32
# or
deno add jsr:@uzmoi/clockwork-base32
Usage
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`