Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Intl.NumberFormatParse

Intl.NumberFormat with parse() and other useful features.

Installation and usage

npm i number-format-parse

import NumberFormatParse from 'number-format-parse';

Examples

There's a CodeSandbox here: https://codesandbox.io/s/parse-numbers-from-user-input-money-example-bmd1l

Motivation and Credits

After a couple of days trying to find a standard solution for parsing numbers (from user input) without using heavy libs e.g. globalize.js, I've basically come to the same conclusions as @mbostock here. NumberParser is THE hack we all need, thank you!🤘

— Andrea Puddu (@nuragic) July 29, 2020

This code is basically an enhanced version of the one from the post Localized Number Parsing.

About

Intl.NumberFormat with parse() and other useful features.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages