{"id":15708084,"url":"https://github.com/ultirequiem/leap-year-api","last_synced_at":"2025-05-12T21:07:57.481Z","repository":{"id":39543373,"uuid":"388268720","full_name":"UltiRequiem/leap-year-api","owner":"UltiRequiem","description":":date: An API to know if a year is leap or not.","archived":false,"fork":false,"pushed_at":"2022-09-01T00:11:46.000Z","size":300,"stargazers_count":5,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-12T21:07:37.991Z","etag":null,"topics":["api","deno","leap-year","rest-api","typescript"],"latest_commit_sha":null,"homepage":"https://leap.deno.dev","language":"TypeScript","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/UltiRequiem.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}},"created_at":"2021-07-21T23:11:56.000Z","updated_at":"2022-04-07T19:15:04.000Z","dependencies_parsed_at":"2022-08-26T01:57:07.565Z","dependency_job_id":null,"html_url":"https://github.com/UltiRequiem/leap-year-api","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UltiRequiem%2Fleap-year-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UltiRequiem%2Fleap-year-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UltiRequiem%2Fleap-year-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UltiRequiem%2Fleap-year-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UltiRequiem","download_url":"https://codeload.github.com/UltiRequiem/leap-year-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253823426,"owners_count":21969846,"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":["api","deno","leap-year","rest-api","typescript"],"created_at":"2024-10-03T20:45:54.915Z","updated_at":"2025-05-12T21:07:57.432Z","avatar_url":"https://github.com/UltiRequiem.png","language":"TypeScript","funding_links":["https://patreon.com/UltiRequiem"],"categories":[],"sub_categories":[],"readme":"# Leap Year API\n\n[![Code Coverage](https://codecov.io/gh/ultirequiem/leap-year-api/branch/main/graph/badge.svg)](https://codecov.io/gh/ultirequiem/leap-year-api)\n\nA leap year is a calendar year that contains an additional day added to keep the\ncalendar year synchronized with the astronomical year or seasonal year.\n\n## Endpoints\n\n### `GET /`\n\n\u003e https://leap.deno.dev\n\nReturns if the current year is leap.\n\nCurrently(2022) it returns 👇\n\n```json\n{ \"result\": false }\n```\n\n### `GET /:year`\n\n\u003e https://leap.deno.dev/2004\n\nReturns if `${YEAR}` is a leap year.\n\n```json\n{ \"result\": true }\n```\n\n### `GET /range/:start/:end`\n\n\u003e https://leap.deno.dev/range/1/20\n\nA list with all the leap years from year `${START}` to `${END}`.\n\n```json\n{ \"result\": [4, 8, 12, 16, 20] }\n```\n\n## Usage\n\nYou can see usage examples (in different languages) in [examples/](./examples)\nand in the [tests](./server_test.ts).\n\n## Related\n\n- [leap_year](https://deno.land/x/leap_year): Contains the core logic of this\n  API.\n\n\u003e Includes a CLI Tool if you are interested.\n\n- [leap_years_utils](https://deno.land/x/leap_years_utils): The logic for the in\n  Range Section.\n\n## Changelog\n\n- Jul 21, 2021: Start, using [Express](https://expressjs.com/) and CommonJS 🎉\n\n\u003e The logic to calculate if the year was a leap year was in the router.\n\n- Dec 23, 2021: Move to ESM 🚀\n\n\u003e The logic where moved to an NPM package,\n\u003e [check-leap-year](https://npmjs.com/package/check-leap-year).\n\n- Jan 31, 2022: Add usage example in different languages 👀\n\n\u003e Especially Go, Ruby and Python.\n\n- 24 Mar, 2022: Moved to [Deno](https://deno.land), using\n  [Oak](https://github.com/oakserver/oak) 🐿\n\n\u003e The NPM package was deprecated in favor of\n\u003e [@ultirequiem/leap-year](https://npmjs.com/package/@ultirequiem/leap-year),\n\u003e which is Deno first but works on Node.js and the browser too 😆\n\n## Support\n\nOpen an Issue, I will check it a soon as possible 👀\n\nIf you want to hurry me up a bit\n[send me a tweet](https://twitter.com/UltiRequiem) 😆\n\nConsider [supporting me on Patreon](https://patreon.com/UltiRequiem) if you like\nmy work 🙏\n\nDon't forget to start the repo ⭐\n\n## Licence\n\nLicensed under the MIT License 📄\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fultirequiem%2Fleap-year-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fultirequiem%2Fleap-year-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fultirequiem%2Fleap-year-api/lists"}