clickerheroes-format

2.0.0 • Public • Published

clickerheroes-format

Format large numbers just as ClickerHeroes does.

Example

const format = require('clickerheroes-format');

format(1e5);
// => '100K'

Installation

$ npm install clickerheroes-format

API

const format = require('clickerheroes-format');

format(n)

Format Number n as a String abbreviated with the same units that ClickerHeroes uses.

Readme

Keywords

Package Sidebar

Install

npm i clickerheroes-format

Weekly Downloads

0

Version

2.0.0

License

MIT

Unpacked Size

3.59 kB

Total Files

4

Last publish

Collaborators

  • kenan