0.0.2 • Published 6 months ago

@secondphantom/reverse-number-format v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Reverse Number Format

You can convert compact number to number.

Installation

npm i @secondphantom/reverse-number-format

Basic Usage

const formattedStr = '39.KM' // 1M 1B 1천 1만 ....

const num = reverseNumberFormat(formattedStr,'en',{notation:'compact'})

console.log(num) // 39500

Api

reverseNumberFormat()

function reverseNumberFormat(
	formattedNumberStr: string, 
	locale: string, 
	options?: {
    notation: "standard" | "compact";
}): number
0.0.2

6 months ago

0.0.1

6 months ago