{"id":21467422,"url":"https://github.com/elusivecodes/frostnumberformatter","last_synced_at":"2026-02-26T21:02:52.558Z","repository":{"id":52021655,"uuid":"180981602","full_name":"elusivecodes/FrostNumberFormatter","owner":"elusivecodes","description":"FrostNumberFormatter is a free, open-source number formatting library for JavaScript.","archived":false,"fork":false,"pushed_at":"2025-05-09T05:49:44.000Z","size":265,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-28T06:43:27.716Z","etag":null,"topics":["currency","format","international","javascript","localization","number","parse"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elusivecodes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-12T09:59:16.000Z","updated_at":"2025-05-09T05:49:39.000Z","dependencies_parsed_at":"2023-11-29T03:24:00.672Z","dependency_job_id":"f9161371-41d5-43df-8319-33af835cc2e8","html_url":"https://github.com/elusivecodes/FrostNumberFormatter","commit_stats":{"total_commits":45,"total_committers":1,"mean_commits":45.0,"dds":0.0,"last_synced_commit":"cf5d22380f00bbb71f1efc31fc627ec19d24b0b0"},"previous_names":["elusivecodes/frostnumberformat"],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/elusivecodes/FrostNumberFormatter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elusivecodes%2FFrostNumberFormatter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elusivecodes%2FFrostNumberFormatter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elusivecodes%2FFrostNumberFormatter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elusivecodes%2FFrostNumberFormatter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elusivecodes","download_url":"https://codeload.github.com/elusivecodes/FrostNumberFormatter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elusivecodes%2FFrostNumberFormatter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29872674,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T21:01:59.805Z","status":"ssl_error","status_checked_at":"2026-02-26T21:00:42.555Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["currency","format","international","javascript","localization","number","parse"],"created_at":"2024-11-23T08:17:57.602Z","updated_at":"2026-02-26T21:02:52.528Z","avatar_url":"https://github.com/elusivecodes.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FrostNumberFormatter\r\n\r\n**FrostNumberFormatter** is a free, open-source number formatting library for *JavaScript*.\r\n\r\nIt is a tiny (~1kb gzipped) and modern library, extending the native [Intl.NumberFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat) class, with additional capabilities for parsing formatted number strings into numbers.\r\n\r\n\r\n## Table Of Contents\r\n- [Installation](#installation)\r\n- [Basic Usage](#basic-usage)\r\n- [Formatting](#formatting)\r\n- [Parsing](#parsing)\r\n\r\n\r\n\r\n## Installation\r\n\r\n**In Browser**\r\n\r\n```html\r\n\u003cscript type=\"text/javascript\" src=\"/path/to/frost-numberformatter.min.js\"\u003e\u003c/script\u003e\r\n```\r\n\r\n**Using NPM**\r\n\r\n```\r\nnpm i @fr0st/numberformatter\r\n```\r\n\r\nIn Node.js:\r\n\r\n```javascript\r\nimport NumberFormatter from '@fr0st/numberformatter';\r\n```\r\n\r\n\r\n## Basic Usage\r\n\r\nAs the class internally utilizes the native [Intl.NumberFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat) class, usage is very straightforward.\r\n\r\n- `locale` is a string with a BCP 47 language tag, or an array of such strings, and will default to the system locale.\r\n- `options` is an object containing options for formatting.\r\n\r\nFor a full list of supported options, see the [Intl.NumberFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat) documentation.\r\n\r\n```javascript\r\nconst formatter = new NumberFormatter(locale, options);\r\n```\r\n\r\n\r\n## Formatting\r\n\r\nReturn a formatted number string, using the locale and formatting options.\r\n\r\n- `number` is the number you wish to format.\r\n\r\n```javascript\r\nconst numberString = formatter.format(number);\r\n```\r\n\r\n**Format To Parts**\r\n\r\nReturn an array of objects, containing the formatted number string in parts.\r\n\r\n- `number` is the number you wish to format.\r\n\r\n```javascript\r\nconst numberParts = formatter.formatToParts(number);\r\n```\r\n\r\n\r\n## Parsing\r\n\r\nReturn a parsed number from a formatted number string.\r\n\r\n- `numberString` is the string you wish to parse.\r\n\r\n```javascript\r\nconst number = formatter.parse(numberString);\r\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felusivecodes%2Ffrostnumberformatter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felusivecodes%2Ffrostnumberformatter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felusivecodes%2Ffrostnumberformatter/lists"}