4.1.1 • Published 3 years ago

shortscale v4.1.1

Weekly downloads
21
License
MIT
Repository
github
Last release
3 years ago

shortscale

CI

Converts numbers into English words.

This module was written as an exploration of JavaScript and Rust documented here.

The short scale, has different words for each power of 1000.

Supports positive integers from 0 to Number.MAX_SAFE_INTEGER (9,007,199,254,740,991).
All other values return undefined.

Example

import { shortscale } from 'shortscale';

console.log(shortscale(420000999015));
// four hundred and twenty billion nine hundred and ninety nine thousand and fifteen

ESM

As of v2.0 , this library is packaged as an ESM module.

To call from CommonJS use dynamic import(), or use require() with version ^1.1.0 in package.json.

See example-CJS-v1, example-CJS-v2, example-ESM.

Rust

For Rust version see jldec/shortscale-rs.

4.1.1

3 years ago

4.1.0

3 years ago

4.0.0

3 years ago

3.0.0

3 years ago

2.0.0

3 years ago

1.1.0

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago