{"id":16727057,"url":"https://github.com/lpil/rank","last_synced_at":"2026-01-02T17:06:59.598Z","repository":{"id":214780162,"uuid":"737342034","full_name":"lpil/rank","owner":"lpil","description":"Ordinals for numbers, e.g. 1st, 2nd, 3rd","archived":false,"fork":false,"pushed_at":"2024-04-15T18:29:31.000Z","size":3,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-22T05:42:14.260Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Gleam","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/lpil.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2023-12-30T17:24:10.000Z","updated_at":"2023-12-30T20:43:39.000Z","dependencies_parsed_at":"2024-11-21T17:02:17.307Z","dependency_job_id":null,"html_url":"https://github.com/lpil/rank","commit_stats":null,"previous_names":["lpil/rank"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpil%2Frank","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpil%2Frank/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpil%2Frank/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpil%2Frank/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lpil","download_url":"https://codeload.github.com/lpil/rank/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243753989,"owners_count":20342537,"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","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-10-12T22:55:57.670Z","updated_at":"2026-01-02T17:06:59.532Z","avatar_url":"https://github.com/lpil.png","language":"Gleam","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rank\n\nOrdinals for numbers, e.g. 1st, 2nd, 3rd\n\n[![Package Version](https://img.shields.io/hexpm/v/rank)](https://hex.pm/packages/rank)\n[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/rank/)\n\n```sh\ngleam add rank\n```\n```gleam\nimport rank\n\npub fn main() {\n  rank.ordinalise(1) // \"1st\"\n  rank.ordinalise(2) // \"2nd\"\n  rank.ordinalise(3) // \"3rd\"\n  rank.suffix(1) // \"st\"\n  rank.suffix(2) // \"nd\"\n  rank.suffix(3) // \"rd\"\n}\n```\n\nDocumentation can be found at \u003chttps://hexdocs.pm/rank\u003e.\n\nThanks to [Andrew Hao's Ordinal](https://github.com/andrewhao/ordinal) which\nwas the inspiration for this library.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flpil%2Frank","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flpil%2Frank","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flpil%2Frank/lists"}