1.0.4 • Published 8 months ago

@wegry/intl-numberparser v1.0.4

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

intl-numberparser

npm install @wegry/intl-numberparser

Parse numbers based on Intl.NumberFormat and a locale.

import { NumberParser } from '@wegry/intl-numberparser'

new NumberParser('en-US').parse('1,234.56') // 1234.56
new NumberParser('fr').parse('1 234,56')    // 1234.56
1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago