Have ideas to improve npm?Join in the discussion! »

magnitudetonumber

0.0.1 • Public • Published

Converts Billion, Million and Trillion strings to integer numbers.

magnitudeToNumber('100,000') // 100000 
magnitudeToNumber('1M') // 1000000
magnitudeToNumber('2M') // 2000000
magnitudeToNumber('2.5M') // 2500000
magnitudeToNumber('5M') // 5000000

Install

npm i magnitudetonumber

DownloadsWeekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

2.31 kB

Total Files

5

Last publish

Collaborators

  • avatar