Sitelet https://github.com/Kikobeats/millify
Skip to content
KikobeatsPublic
forked from izolate/millify

About

Human-readable large numbers for Node.js

Resources

Stars

0 stars

Watchers

1 watching

Forks

 
 

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

millify

Human-readable large numbers for Node.js v4+

Installation

npm i --save millify

Usage

millify(@number, @decimal)

First parameter is the number, second parameter is the desired decimal places (default: 1).

const millify = require('millify')

millify(2500)
// 2.5K

millify(1250000, 3)
// 1.25M

millify(2000000000)
// 2B

About

Human-readable large numbers for Node.js

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages