{"id":32114838,"url":"https://github.com/ggb/numeral-elm","last_synced_at":"2026-02-20T00:30:50.770Z","repository":{"id":52685012,"uuid":"54991375","full_name":"ggb/numeral-elm","owner":"ggb","description":"Numeral.js port to Elm","archived":false,"fork":false,"pushed_at":"2023-05-31T08:35:38.000Z","size":44,"stargazers_count":22,"open_issues_count":2,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-01-26T14:10:52.448Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elm","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/ggb.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":"2016-03-29T16:21:42.000Z","updated_at":"2022-11-12T19:52:44.000Z","dependencies_parsed_at":"2024-06-21T15:59:13.171Z","dependency_job_id":"7bd012da-2566-4eb7-a181-5623ed8547d9","html_url":"https://github.com/ggb/numeral-elm","commit_stats":{"total_commits":50,"total_committers":9,"mean_commits":5.555555555555555,"dds":"0.21999999999999997","last_synced_commit":"313dde53999bd26ca7b5c9c8a5f7d7608d343800"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/ggb/numeral-elm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggb%2Fnumeral-elm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggb%2Fnumeral-elm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggb%2Fnumeral-elm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggb%2Fnumeral-elm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ggb","download_url":"https://codeload.github.com/ggb/numeral-elm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggb%2Fnumeral-elm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28891433,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T21:06:44.224Z","status":"ssl_error","status_checked_at":"2026-01-29T21:06:42.160Z","response_time":59,"last_error":"SSL_read: 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":[],"created_at":"2025-10-20T15:36:04.372Z","updated_at":"2026-02-20T00:30:50.765Z","avatar_url":"https://github.com/ggb.png","language":"Elm","funding_links":[],"categories":[],"sub_categories":[],"readme":"# numeral-elm\n\nElm module for (advanced) number formatting. It is a direct port of [Numeral.js](http://numeraljs.com/) and it is possible to use the same format strings. Manipulation and unformatting of numbers is not yet supported.\n\nIf you create a new language-file, please let me know or send a pull request.\n\n# Formatting\n\nFormat a number with a given language.\n\n```elm\nimport Languages.Japanese as Japanese\n\nmyFormat = formatWithLanguage Japanese.lang \"0.0a\"\n\n-- map myFormat [10123.12, 235798239.3242] == [\"10.1千\",\"235.8百万\"]\n```\n\nThe format-function works the same way as formatWithLanguage, but English is set as default language.\n\n```elm\nformat \"$0,0.00\" 1000.234 == \"$1,000.23\"\n```\n\n## Numbers\n\n| Number  | Format  | Result |\n|---------|---------|--------|\n| 10000 | '0,0.0000' | 10,000.0000 |\n| 10000.23 | '0,0' | 10,000 |\n| 10000.23 | '+0,0' | +10,000 |\n| -10000 | '0,0.0' | -10,000.0 |\n| 10000.1234 | '0.000' | 10000.123 |\n| 10000.1234 | '0[.]00000' | 10000.12340 |\n| -10000 | '(0,0.0000)' | (10,000.0000) |\n| -0.23 | '.00' | -.23 |\n| -0.23 | '(.00)' | (.23) |\n| 0.23 | '0.00000' | 0.23000 |\n| 0.23 | '0.0[0000]' | 0.23 |\n| 1230974 | '0.0a' | 1.2m |\n| 1460 | '0 a' | 1 k |\n| -104000 | '0a' | -104k |\n| 1 | '0o' | 1st |\n| 52 | '0o' | 52nd |\n| 23 | '0o' | 23rd |\n| 100 | '0o' | 100th |\n\n## Currency\n\n| Number  | Format  | Result |\n|---------|---------|--------|\n| 1000.234 | '$0,0.00' | $1,000.23 |\n| 1000.2 | '0,0[.]00 $' | 1,000.20 $ |\n| 1001 | '$ 0,0[.]00' | $ 1,001 |\n| -1000.234 | '($0,0)' | ($1,000) |\n| -1000.234 | '$0.00' | -$1000.23 |\n| 1230974 | '($ 0.00 a)' | $ 1.23 m |\n\n## Bytes\n\n| Number  | Format  | Result |\n|---------|---------|--------|\n| 100 | '0b' | 100B |\n| 2048 | '0 b' | 2 KB |\n| 7884486213 | '0.0b' | 7.3GB |\n| 3467479682787 | '0.000 b' | 3.154 TB |\n\n## Percentages\n\n| Number  | Format  | Result |\n|---------|---------|--------|\n| 1 | '0%' | 100% |\n| 0.974878234 | '0.000%' | 97.488% |\n| -0.43 | '0 %' | -43 % | \n| 0.43 | '(0.000 %)' | 43.000 % |\n\n## Time\n\n| Number  | Format  | Result |\n|---------|---------|--------|\n| 25 | '00:00:00' | 0:00:25 |\n| 238 | '00:00:00' | 0:03:58 |\n| 63846 | '00:00:00' | 17:44:06 |\n\n## Custom Unit Suffixes\n\n| Number  | Format  | Result |\n|---------|---------|--------|\n| 12345 | 0,0[ pcs.] | 12,345 pcs. |\n| 12345 | 0,0[pcs.] | 12,345pcs. |\n| 300000 | 0,0 [ ponies] | 300,000 ponies |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fggb%2Fnumeral-elm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fggb%2Fnumeral-elm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fggb%2Fnumeral-elm/lists"}