1.0.5 • Published 3 years ago

number-prettier v1.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

number-prettier

Pretty a number and shortened it to make it look more pretty and simple.

Number Commas 🌠

const { commas } = require('number-prettier')
commas(1000000) // 1,000,000

Number Formatting 📲

const { format } = require('number-prettier')
format(1000, 2) // 1k

Available Values

{
"k": "thousands",
"M": "millions",
"B": "billions",
"T": "trillions",
"Q": "quadrillions",
"QT": "quintillions"
}

Note

You can add more values by accessing the index.js file from the package file , and added the values on your own!
Below are the list of the scientifc notations for the values! Thank you 😄

https://clickerheroes.fandom.com/wiki/Units

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.0

3 years ago