JSPM

@simonsinclair/n32

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q13717F
  • License MIT

Express numbers in a form that can be conveniently and accurately transmitted between humans and computers.

Package Exports

  • @simonsinclair/n32

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@simonsinclair/n32) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

n32

Express numbers in a form that can be conveniently and accurately transmitted between humans and computers.

Install

npm i @simonsinclair/n32

Usage

const { default: n32 } = require('@simonsinclair/n32');

const randomNumber = 123456789;
const friendlyId = n32(randomNumber);

console.log(friendlyId);
'3nqk8n';

API

n32(number)

Returns a string.

number

Type: number.

The number to express.

Supported browsers

IE11, and all modern browsers.