crockford-base32-number
v1.0.3
Published
A simple util for encoding and decoding numbers as Crockford Base32 strings
Downloads
12
Readme
Crockford Base32 number
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);