{"id":16811931,"url":"https://github.com/dcousens/ordinal.js","last_synced_at":"2025-09-14T03:32:09.411Z","repository":{"id":40466534,"uuid":"89434911","full_name":"dcousens/ordinal.js","owner":"dcousens","description":"A compact module to provide the English ordinal letters following a numeral","archived":false,"fork":false,"pushed_at":"2024-01-09T19:47:19.000Z","size":17,"stargazers_count":41,"open_issues_count":1,"forks_count":5,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-08-20T10:53:40.366Z","etag":null,"topics":["javascript","numeral","ordinal"],"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/dcousens.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":"2017-04-26T03:44:14.000Z","updated_at":"2025-05-04T21:15:04.000Z","dependencies_parsed_at":"2024-01-09T20:46:16.055Z","dependency_job_id":"52d008a5-b899-411c-b196-f12ca131a35f","html_url":"https://github.com/dcousens/ordinal.js","commit_stats":{"total_commits":23,"total_committers":6,"mean_commits":"3.8333333333333335","dds":0.6521739130434783,"last_synced_commit":"6cea7c98ac74d49d21e519a851cdec0837ffb02f"},"previous_names":["dcousens/ordinal"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/dcousens/ordinal.js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcousens%2Fordinal.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcousens%2Fordinal.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcousens%2Fordinal.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcousens%2Fordinal.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dcousens","download_url":"https://codeload.github.com/dcousens/ordinal.js/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcousens%2Fordinal.js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275058125,"owners_count":25398168,"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-09-14T02:00:10.474Z","response_time":75,"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":["javascript","numeral","ordinal"],"created_at":"2024-10-13T10:20:05.892Z","updated_at":"2025-09-14T03:32:09.132Z","avatar_url":"https://github.com/dcousens.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ordinal\n[![Version](https://img.shields.io/npm/v/ordinal.svg)](https://www.npmjs.org/package/ordinal)\n\nA compact module to provide the English ordinal letters following a numeral.\n\nIf other languages are required, [please submit an issue](https://github.com/dcousens/ordinal/issues/new).\n\n\n## Examples\nNumbers only, anything else will throw a `TypeError`.\n\n``` javascript\nvar ordinal = require('ordinal')\n\nordinal(1) // '1st'\nordinal(2) // '2nd'\nordinal(3) // '3rd'\nordinal(4) // '4th'\n\nordinal(11) // '11th'\nordinal(12) // '12th'\nordinal(13) // '13th'\n\nordinal(21) // '21st'\nordinal(22) // '22nd'\nordinal(23) // '23rd'\nordinal(24) // '24th'\n```\n\nTo get just the indicator:\n\n``` javascript\nvar indicator = require('ordinal/indicator')\n\nindicator(1) // 'st'\nindicator(2) // 'nd'\nindicator(3) // 'rd'\nindicator(4) // 'th'\n\nindicator(11) // 'th'\nindicator(12) // 'th'\nindicator(13) // 'th'\n\nindicator(21) // 'st'\nindicator(22) // 'nd'\nindicator(23) // 'rd'\nindicator(24) // 'th'\n```\n\n## LICENSE [MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcousens%2Fordinal.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdcousens%2Fordinal.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcousens%2Fordinal.js/lists"}