number-format-parse

    1.0.1 • Public • Published

    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.

    Keywords

    none

    Install

    npm i number-format-parse

    DownloadsWeekly Downloads

    7

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    8.57 kB

    Total Files

    5

    Last publish

    Collaborators

    • nuragic