@secondphantom/reverse-number-format
v0.0.2
Published
You can convert `compact number` to `number`. ## Installation ```bash npm i @secondphantom/reverse-number-format ``` ## Basic Usage ```ts const formattedStr = '39.KM' // 1M 1B 1천 1만 ....
Downloads
31
Readme
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