Skip to content

A simple util for encoding and decoding numbers as Crockford Base32 strings

License

Notifications You must be signed in to change notification settings

gnarr/crockford

Repository files navigation

Crockford Base32 number

Build Status Coverage Status npm Downloads/week Dependabot Status

A simple util for encoding and decoding numbers as Crockford Base32 strings.

Installation

Node.js

$ npm install crockford-base32-number

Example usage:

const { toBase32, fromBase32 } = require("crockford-base32-number");
const asBase32 = toBase32(1337);
console.log(asBase32);
const asNumber = fromBase32(asBase32);
console.log(asNumber);

About

A simple util for encoding and decoding numbers as Crockford Base32 strings

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published