1.0.3 • Published 3 years ago

crockford-base32-number v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

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);