numberformat_asw
v1.1.4
Published
to make the number as K, M, B Format
Downloads
2
Maintainers
Readme
Number Format
To make the number format as Short form.
for example :
3000 ==> 3K
300000 ==> 300k
3000000 ==> 3M
300000000 ==> 300M
3000000000 ==> 3B
300000000000 ==> 300B
Installation
Install my-project with npm
npm install numberformat_asw
Demo
Use this package as a function
import { numberFormat } from 'numberformat_asw'
const num = 10 // 10
let format = numberFormat(num) // 10
const num = 1000 // 1000
let format = numberFormat(num) // 1k
End
Thank You.