{"_id":"intl-number-parser","_rev":"10-9f7be16ce7f573ae1151819aec9f8985","name":"intl-number-parser","dist-tags":{"latest":"1.0.6"},"versions":{"1.0.2":{"name":"intl-number-parser","version":"1.0.2","keywords":["number parser","Intl","locale","number format","decimal","currency","parsing","i18n","internationalization","internationalisation","localization","localisation","l10n","number conversion"],"author":{"name":"Exact Realty Limited"},"license":"ISC","_id":"intl-number-parser@1.0.2","maintainers":[{"name":"corrideat","email":"3857362+corrideat@users.noreply.github.com"}],"homepage":"https://github.com/Exact-Realty/intl-number-parser#readme","bugs":{"url":"https://github.com/Exact-Realty/intl-number-parser/issues"},"dist":{"shasum":"26a47b8a15a03d97b5074179c2ec0087bf847196","tarball":"https://registry.npmjs.org/intl-number-parser/-/intl-number-parser-1.0.2.tgz","fileCount":9,"integrity":"sha512-b9W1GT0i1QZFUOw1t0JFBvzvROQ2Q9gWiTQUgnlWSweYtXU9JWYfKUfidEVbDN4woeLusc64XTiJXl+35OP9dg==","signatures":[{"sig":"MEUCIQDUA6CT0IDddQrBdjMq/Lr9+z4KRn9sqwRAdqO4WwtZlAIgBrDZqdglR38xA3EQikmc/AwGK3DFtrJRaxWV4SxU3jE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7407},"main":"dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{"import":"./dist/index.mjs","require":"./dist/index.js"},"gitHead":"31705d9fa04284d63d610db8e5493282e680e733","scripts":{"lint":"eslint . --ext .js,.jsx,.ts,.tsx","test":"mocha","build":"tsc --emitDeclarationOnly --declarationMap && node esbuild.mjs","lintFix":"eslint . --ext .js,.jsx,.ts,.tsx --fix","prepare":"npm run build","version":"npm run lint && git add -A src","preversion":"npm run lint","postinstall":"exit 0","postversion":"git push && git push --tags","prepublishOnly":"npm test && npm run lint"},"_npmUser":{"name":"corrideat","email":"3857362+corrideat@users.noreply.github.com"},"repository":{"url":"git+https://github.com/Exact-Realty/intl-number-parser.git","type":"git"},"_npmVersion":"9.6.3","description":"Utility for parsing international numbers to native JavaScript numbers based on the locale","directories":{},"_nodeVersion":"19.9.0","_hasShrinkwrap":false,"devDependencies":{"mocha":"^10.2.0","eslint":"^8.40.0","esbuild":"^0.17.18","ts-node":"^10.9.1","prettier":"^2.8.8","typescript":"^5.0.4","@types/mocha":"^10.0.1","eslint-config-prettier":"^8.8.0","eslint-plugin-prettier":"^4.2.1","@typescript-eslint/parser":"^5.59.5","@typescript-eslint/eslint-plugin":"^5.59.5"},"_npmOperationalInternal":{"tmp":"tmp/intl-number-parser_1.0.2_1683846865863_0.2797310537341533","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"intl-number-parser","version":"1.0.3","keywords":["number parser","Intl","locale","number format","decimal","currency","parsing","i18n","internationalization","internationalisation","localization","localisation","l10n","number conversion"],"author":{"name":"Exact Realty Limited"},"license":"ISC","_id":"intl-number-parser@1.0.3","maintainers":[{"name":"corrideat","email":"3857362+corrideat@users.noreply.github.com"},{"name":"er-ci-bot","email":"npm+noreply+er-ci-bot@exact.realty"}],"homepage":"https://github.com/Exact-Realty/intl-number-parser#readme","bugs":{"url":"https://github.com/Exact-Realty/intl-number-parser/issues"},".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"dist":{"shasum":"f68323374dcef2ec325320184e51599d19948a18","tarball":"https://registry.npmjs.org/intl-number-parser/-/intl-number-parser-1.0.3.tgz","fileCount":9,"integrity":"sha512-pxwcPKv3XpUpyJ/lZbr1ZTU8NrpsGkn8kJzuHu58U5Bsj5nmw+GkgCKRUtKlgFdngzHy3/JQxvu1CQNESARpiw==","signatures":[{"sig":"MEUCIQCf4By6sUvnuC3v2dotmETaRwVDmRdJGIwvAYVa9loe+wIgWAvBvU1fUvCmRoqdCcHh9VURqexYaTRMMGr3ptrA0o8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/intl-number-parser@1.0.3","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":7521},"main":"dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","gitHead":"f95ec68bc3b3bdce685c4f9a3cf72d1c0f46b281","scripts":{"lint":"eslint . --ext .js,.jsx,.ts,.tsx","test":"mocha","build":"tsc --emitDeclarationOnly --declarationMap && node esbuild.mjs","prepack":"npm run build","version":"npm run lint && git add -A src","lint:fix":"eslint . --ext .js,.jsx,.ts,.tsx --fix","preversion":"npm run lint","postinstall":"exit 0","postversion":"git push && git push --tags","prepublishOnly":"npm test && npm run lint"},"_npmUser":{"name":"er-ci-bot","email":"npm+noreply+er-ci-bot@exact.realty"},"repository":{"url":"git+https://github.com/Exact-Realty/intl-number-parser.git","type":"git"},"_npmVersion":"9.6.3","description":"Utility for parsing international numbers to native JavaScript numbers based on the locale","directories":{},"_nodeVersion":"19.9.0","_hasShrinkwrap":false,"devDependencies":{"mocha":"^10.2.0","eslint":"^8.50.0","esbuild":"^0.19.4","ts-node":"^10.9.1","prettier":"^3.0.3","typescript":"^5.2.2","@types/mocha":"^10.0.2","eslint-config-prettier":"^9.0.0","eslint-plugin-prettier":"^5.0.0","@typescript-eslint/parser":"^6.7.4","@typescript-eslint/eslint-plugin":"^6.7.4"},"_npmOperationalInternal":{"tmp":"tmp/intl-number-parser_1.0.3_1696553313327_0.28823925446526255","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"intl-number-parser","version":"1.0.4","keywords":["number parser","Intl","locale","number format","decimal","currency","parsing","i18n","internationalization","internationalisation","localization","localisation","l10n","number conversion"],"author":{"name":"Exact Realty Limited"},"license":"ISC","_id":"intl-number-parser@1.0.4","maintainers":[{"name":"er-ci-bot","email":"npm+noreply+er-ci-bot@exact.realty"},{"name":"corrideat","email":"3857362+corrideat@users.noreply.github.com"}],"homepage":"https://github.com/Exact-Realty/intl-number-parser#readme","bugs":{"url":"https://github.com/Exact-Realty/intl-number-parser/issues"},".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"dist":{"shasum":"f154e6258104cd1d76b4713de0ff58998aaade7e","tarball":"https://registry.npmjs.org/intl-number-parser/-/intl-number-parser-1.0.4.tgz","fileCount":11,"integrity":"sha512-IaPvH3IIchBfb9GSWSDPilmQ24Chvz5hUE/DKAJQGp3dYEzsBy6Cj4m0gxBVdmm44lVVCKWp+u0vqVn9Mc8jrg==","signatures":[{"sig":"MEYCIQC8etOcOKgMpnu/kTHLFzKxXQ1hWnfohU5sCii4KQzPAwIhAL6mP4tPMY/4YTuikMKRiaUODm4CChgXB6KYoEtlGZ6Z","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/intl-number-parser@1.0.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":7841},"main":"dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.mjs","gitHead":"b6c6afa00859d07e954ca9103b137f501b228d29","scripts":{"lint":"eslint . --ext .js,.jsx,.ts,.tsx","test":"node --loader ts-node/esm test/NumberParser.test.ts","build":"tsc --emitDeclarationOnly --declarationMap && node esbuild.mjs","prepack":"npm run build","version":"npm run lint && git add -A src","lint:fix":"eslint . --ext .js,.jsx,.ts,.tsx --fix","preversion":"npm run lint","postinstall":"exit 0","postversion":"git push && git push --tags","prepublishOnly":"npm test && npm run lint"},"_npmUser":{"name":"er-ci-bot","email":"npm+noreply+er-ci-bot@exact.realty"},"repository":{"url":"git+https://github.com/Exact-Realty/intl-number-parser.git","type":"git"},"_npmVersion":"10.5.2","description":"Utility for parsing international numbers to native JavaScript numbers based on the locale","directories":{},"_nodeVersion":"20.13.1","_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.50.0","esbuild":"^0.21.3","ts-node":"^10.9.2","prettier":"^3.2.5","typescript":"^5.4.5","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","@typescript-eslint/parser":"^7.10.0","@typescript-eslint/eslint-plugin":"^7.10.0"},"_npmOperationalInternal":{"tmp":"tmp/intl-number-parser_1.0.4_1716594258874_0.17590703043307565","host":"s3://npm-registry-packages"}},"1.0.5":{"name":"intl-number-parser","version":"1.0.5","keywords":["number parser","Intl","locale","number format","decimal","currency","parsing","i18n","internationalization","internationalisation","localization","localisation","l10n","number conversion"],"author":{"name":"Exact Realty Limited"},"license":"ISC","_id":"intl-number-parser@1.0.5","maintainers":[{"name":"er-ci-bot","email":"npm+noreply+er-ci-bot@exact.realty"},{"name":"corrideat","email":"3857362+corrideat@users.noreply.github.com"}],"homepage":"https://github.com/Exact-Realty/intl-number-parser#readme","bugs":{"url":"https://github.com/Exact-Realty/intl-number-parser/issues"},".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"dist":{"shasum":"1a8659ef5e39609a2a3038c2c9aaa95015c32a6d","tarball":"https://registry.npmjs.org/intl-number-parser/-/intl-number-parser-1.0.5.tgz","fileCount":11,"integrity":"sha512-hj4eRgHTFzxioRcdYTCPkzG0gn1k5mdoBf3rYd5J0hv6ITtyfpQbtYQJ8wqJ4kGgmn5awqNtpUOD1hAPiIv9Qw==","signatures":[{"sig":"MEYCIQCRY6CVD0y8c7Pl1EZEBEHbGjYNscR6xM8T9/JzHPly9gIhAImCXg9LVuEAc0KU8l0AZfezIewfgnZ0h3WFDeDyNHii","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/intl-number-parser@1.0.5","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":7783},"main":"dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.mjs","gitHead":"76b708c98c83891adc9adba94b6a308b63f8f8d1","scripts":{"lint":"eslint . --ext .js,.jsx,.ts,.tsx,.json","test":"node --loader ts-node/esm test/NumberParser.test.ts","build":"npm run ts:declaration && node esbuild.mjs","prepack":"npm run build","version":"npm run lint && git add -A src","lint:fix":"eslint . --ext .js,.jsx,.ts,.tsx,.json --fix","preversion":"npm run lint","postversion":"git push && git push --tags","prepublishOnly":"npm test && npm run lint","ts:declaration":"tsc --build --emitDeclarationOnly --declarationMap --declaration"},"_npmUser":{"name":"er-ci-bot","email":"npm+noreply+er-ci-bot@exact.realty"},"repository":{"url":"git+https://github.com/Exact-Realty/intl-number-parser.git","type":"git"},"_npmVersion":"10.5.2","description":"Utility for parsing international numbers to native JavaScript numbers based on the locale","directories":{},"_nodeVersion":"20.13.1","_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.57.0","esbuild":"^0.21.4","ts-node":"^10.9.2","prettier":"^3.2.5","typescript":"^5.4.5","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","@typescript-eslint/parser":"^7.10.0","@typescript-eslint/eslint-plugin":"^7.10.0"},"_npmOperationalInternal":{"tmp":"tmp/intl-number-parser_1.0.5_1716766563609_0.3002940522473865","host":"s3://npm-registry-packages"}},"1.0.6":{"name":"intl-number-parser","version":"1.0.6","description":"Utility for parsing international numbers to native JavaScript numbers based on the locale","type":"module","main":"dist/index.cjs","module":"./dist/index.mjs",".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"scripts":{"lint":"eslint . --ext .js,.jsx,.ts,.tsx,.json","lint:fix":"eslint . --ext .js,.jsx,.ts,.tsx,.json --fix","ts:declaration":"tsc --build --emitDeclarationOnly --declarationMap --declaration","build":"tsc --emitDeclarationOnly --declarationMap && node --import ./loader.mjs esbuild.ts","test":"node --import ./loader.mjs --test ./test/NumberParser.test.ts","prepack":"npm run build","prepublishOnly":"npm test && npm run lint","preversion":"npm run lint","version":"npm run lint && git add -A src","postversion":"git push && git push --tags"},"repository":{"type":"git","url":"git+https://github.com/ApelegHQ/intl-number-parser.git"},"author":{"name":"Apeleg Limited"},"license":"ISC","devDependencies":{"@eslint/eslintrc":"^3.3.1","@eslint/js":"^9.37.0","@types/node":"^24.7.2","@typescript-eslint/eslint-plugin":"^8.46.0","@typescript-eslint/parser":"^8.46.0","esbuild":"^0.25.10","eslint":"^9.37.0","eslint-config-prettier":"^10.1.8","eslint-plugin-prettier":"^5.5.4","globals":"^16.4.0","prettier":"^3.6.2","ts-node":"^10.9.2","typescript":"^5.9.3"},"keywords":["number parser","Intl","locale","number format","decimal","currency","parsing","i18n","internationalization","internationalisation","localization","localisation","l10n","number conversion"],"_id":"intl-number-parser@1.0.6","gitHead":"684bb06bb573b31abe8e5e3302b3bc308b1ddd2d","types":"./dist/index.d.ts","bugs":{"url":"https://github.com/ApelegHQ/intl-number-parser/issues"},"homepage":"https://github.com/ApelegHQ/intl-number-parser#readme","_nodeVersion":"24.9.0","_npmVersion":"11.6.0","dist":{"integrity":"sha512-+1a+OzVqClnpSsI7eJpUqBmP7qwoQO12+KScRVc9IzkEF8ZRgDxQ6/NZ0ZoVuQuKIuR68uw61TImN6BQKp7DSg==","shasum":"490ecaebba5da559273352c5595475452aa6c629","tarball":"https://registry.npmjs.org/intl-number-parser/-/intl-number-parser-1.0.6.tgz","fileCount":11,"unpackedSize":7949,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/intl-number-parser@1.0.6","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD9cstFv7wLDIeDqJ5f5YZXbM8A8E+aOHnZkD7PL86VigIhAPnOzFSqrM5ai2xpcXhCXZPCTXXzG8LXXUrzCTni5FRU"}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:43207dca-1636-4f73-abbb-6c4522e065ef"}},"directories":{},"maintainers":[{"name":"er-ci-bot","email":"npmjs.com+er-ci-bot+fd8b22b478b6fac7@apeleg.com"},{"name":"corrideat","email":"3857362+corrideat@users.noreply.github.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/intl-number-parser_1.0.6_1760193682952_0.5639673576551378"},"_hasShrinkwrap":false}},"time":{"created":"2023-05-11T05:43:56.345Z","modified":"2025-10-11T14:41:23.586Z","1.0.0":"2023-05-11T05:43:56.585Z","1.0.1":"2023-05-11T05:52:44.694Z","1.0.2":"2023-05-11T23:14:25.997Z","1.0.3":"2023-10-06T00:48:33.496Z","1.0.4":"2024-05-24T23:44:19.081Z","1.0.5":"2024-05-26T23:36:03.752Z","1.0.6":"2025-10-11T14:41:23.138Z"},"bugs":{"url":"https://github.com/ApelegHQ/intl-number-parser/issues"},"author":{"name":"Apeleg Limited"},"license":"ISC","homepage":"https://github.com/ApelegHQ/intl-number-parser#readme","keywords":["number parser","Intl","locale","number format","decimal","currency","parsing","i18n","internationalization","internationalisation","localization","localisation","l10n","number conversion"],"repository":{"type":"git","url":"git+https://github.com/ApelegHQ/intl-number-parser.git"},"description":"Utility for parsing international numbers to native JavaScript numbers based on the locale","maintainers":[{"name":"er-ci-bot","email":"npmjs.com+er-ci-bot+fd8b22b478b6fac7@apeleg.com"},{"name":"corrideat","email":"3857362+corrideat@users.noreply.github.com"}],"readme":"# Intl-Number-Parser 🔢\r\n\r\n🔢 A JavaScript function that parses numbers in various international number\r\nsystems (locale) to native JavaScript numbers.\r\n\r\n## 📖 Introduction\r\n\r\nIntl-Number-Parser is a lightweight and easy-to-use JavaScript function that\r\nallows you to parse numbers in different international number systems to native\r\nJavaScript numbers. It uses the built-in `Intl` object to format and parse\r\nnumbers based on the locale specified.\r\n\r\nThe function provides support for different number systems and supports different formats for negative numbers and currencies. Internally, the function\r\nuses `Intl.NumberFormat`. Currently, it assumes positional and decimal\r\nnumerals.\r\n\r\n## 🚀 Usage\r\n\r\nTo use the Intl-Number-Parser function, simply import it into your project and\r\ncall it with a string containing the number you want to parse. You can also\r\nspecify a locale and options for the `Intl.NumberFormat` constructor, which\r\nthe function uses internally to format and parse numbers.\r\n\r\nHere's an example of how to use the function:\r\n\r\n```js\r\nimport NumberParser from 'intl-number-parser';\r\n\r\nconst parser = NumberParser('en-US', { style: 'currency', currency: 'USD' });\r\n\r\nconst number = parser('$1,234.56'); // returns 1234.56\r\n```\r\n\r\nIn this example, we create a new instance of the Intl-Number-Parser function\r\nwith the `en-US` locale and the `currency` style, which formats the number as\r\na currency with the `USD` currency code. We then call the function with a\r\nstring containing a currency-formatted number and get back the parsed\r\nJavaScript number.\r\n\r\n## 🤝 Contributing\r\n\r\nContributions to the Intl-Number-Parser project are welcome and encouraged! If\r\nyou find a bug or have an idea for a new feature, please open an issue on the\r\nproject's GitHub page.\r\n\r\nIf you want to contribute code, please fork the repository and submit a pull\r\nrequest. Please make sure to write tests for any new code and ensure that all\r\nexisting tests pass before submitting your pull request.\r\n\r\n## 📜 License \r\n\r\nIntl-Number-Parser is free software licensed under the [ISC License](https://github.com/ApelegHQ/intl-number-parser/blob/master/LICENSE).\r\nFeel free to use it in your own projects or modify it as needed.\r\n","readmeFilename":"README.md"}