{"id":18352340,"url":"https://github.com/limpix31/madnum","last_synced_at":"2026-05-10T16:16:55.050Z","repository":{"id":57703416,"uuid":"490010911","full_name":"LIMPIX31/madnum","owner":"LIMPIX31","description":"Transform large numbers to length-friendly string","archived":false,"fork":false,"pushed_at":"2023-09-02T15:39:00.000Z","size":2432,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-16T08:43:31.912Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LIMPIX31.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-05-08T17:29:10.000Z","updated_at":"2024-08-27T15:25:21.000Z","dependencies_parsed_at":"2024-10-23T07:22:49.924Z","dependency_job_id":"d1b43e0f-e385-4054-91b6-4fa5b2bbeee9","html_url":"https://github.com/LIMPIX31/madnum","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"bb35967eaeb602ee75c7e8a0eb641dbb081c0085"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LIMPIX31/madnum","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIMPIX31%2Fmadnum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIMPIX31%2Fmadnum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIMPIX31%2Fmadnum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIMPIX31%2Fmadnum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LIMPIX31","download_url":"https://codeload.github.com/LIMPIX31/madnum/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIMPIX31%2Fmadnum/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270792620,"owners_count":24646248,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-05T21:35:41.549Z","updated_at":"2026-05-10T16:16:54.965Z","avatar_url":"https://github.com/LIMPIX31.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Madnum\nTransform large numbers to length-friendly string\n\nThe transform algorithm uses the **`\"aa\" notation`**\n```ts\nimport { format } from 'madnum'\n// or default import\nimport madnum from 'madnum'\n\n// Default usage\n\nformat(1000) // 1 K\nformat(1e6) // 1 M\nformat(1.5e6) // 1.5 M\n\n// The \"aa\" notation example\n\nformat(1e15) // 1 AA\n\n// With options\n\nformat(123456789, {\n  intl: (num) =\u003e  num.toFixed(2),\n  format: (base, unit) =\u003e `${base}${unit.toLowerCase()}`\n}) // 123.46m\n\n// Intl.NumberFormat\n\nconst formatter = new Intl.NumberFormat('en', {\n  minimumFractionDigits: 0,\n  maximumFractionDigits: 1,\n})\n\nformat(-123114511661, {\n  intl: (num) =\u003e formatter.format(num),\n  format: (base, unit) =\u003e `${base}${unit.toLowerCase()}`\n}) // -123.1b\n\n// Can handle infinity-like numbers\n\nformat(1e1000) // ∞\nformat(Infinity) // ∞\nformat(-Infinity) // -∞\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flimpix31%2Fmadnum","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flimpix31%2Fmadnum","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flimpix31%2Fmadnum/lists"}