New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

numberformat_asw

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

numberformat_asw

to make the number as K, M, B Format

latest
Source
npmnpm
Version
1.1.4
Version published
Weekly downloads
2
-60%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

format

FAQs

Package last updated on 13 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts