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/n32Usage
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.