Skip to content

A fast and minimal implementation of Clockwork Base32 for TypeScript

License

Notifications You must be signed in to change notification settings

uzmoi/clockwork-base32-ts

Repository files navigation

clockwork-base32

NPM Version JSR Version License npm bundle size

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`

About

A fast and minimal implementation of Clockwork Base32 for TypeScript

Topics

Resources

License

Stars

Watchers

Forks