@secondphantom/reverse-number-format
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @secondphantom/reverse-number-format

Weekly Downloads

6

Version

0.0.2

License

MIT

Unpacked Size

9.24 kB

Total Files

8

Last publish

Collaborators

  • secondphantom