crockford-base32-number
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i crockford-base32-number

Weekly Downloads

23

Version

1.0.3

License

ISC

Unpacked Size

5.97 kB

Total Files

5

Last publish

Collaborators

  • gnarr