{"id":14984999,"url":"https://github.com/ultirequiem/leap-year","last_synced_at":"2025-12-11T21:07:47.996Z","repository":{"id":39570987,"uuid":"388311267","full_name":"UltiRequiem/leap-year","owner":"UltiRequiem","description":"❓ Check if a year is a leap year","archived":false,"fork":false,"pushed_at":"2024-05-01T00:16:36.000Z","size":216,"stargazers_count":8,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-06T23:14:29.322Z","etag":null,"topics":["deno","javascript","leap-year","leap-year-check","leap-year-or-not","nodejs","typescript"],"latest_commit_sha":null,"homepage":"https://leap-year.js.org","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/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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-22T03:05:36.000Z","updated_at":"2024-07-01T06:09:48.000Z","dependencies_parsed_at":"2023-02-18T16:32:14.944Z","dependency_job_id":"5135316d-b05a-46a8-9b02-085ae68e226f","html_url":"https://github.com/UltiRequiem/leap-year","commit_stats":{"total_commits":53,"total_committers":3,"mean_commits":"17.666666666666668","dds":0.2264150943396226,"last_synced_commit":"bef175282541c5224429c9ab1852b558a9aa24a5"},"previous_names":["ultirequiem/check-leap-year"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UltiRequiem%2Fleap-year","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UltiRequiem%2Fleap-year/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UltiRequiem%2Fleap-year/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UltiRequiem%2Fleap-year/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UltiRequiem","download_url":"https://codeload.github.com/UltiRequiem/leap-year/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247966839,"owners_count":21025666,"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":["deno","javascript","leap-year","leap-year-check","leap-year-or-not","nodejs","typescript"],"created_at":"2024-09-24T14:10:04.603Z","updated_at":"2025-12-11T21:07:42.706Z","avatar_url":"https://github.com/UltiRequiem.png","language":"TypeScript","funding_links":["https://patreon.com/UltiRequiem"],"categories":[],"sub_categories":[],"readme":"# leap-year\n\n[![Code Coverage](https://codecov.io/gh/ultirequiem/leap-year/branch/main/graph/badge.svg)](https://codecov.io/gh/ultirequiem/leap-year)\n[![Deno Docs](https://doc.deno.land/badge.svg)](https://doc.deno.land/https/deno.land/x/leap_year/mod.ts)\n\nCheck if a year is a [leap year](https://en.wikipedia.org/wiki/Leap_year),\nthat's a calendar year that contains an additional day added to keep the\ncalendar year synchronized with the astronomical year or seasonal year.\n\n## Usage\n\n### [Deno 🦕](https://deno.land/x/leap_year)\n\n```javascript\nimport { isLeapYear } from \"https://deno.land/x/leap_year/mod.ts\";\n\nisLeapYear(2014); //=\u003e false\nisLeapYear(2016); //=\u003e true\nisLeapYear(\"6 October 2006 00:07:00 GMT\"); //=\u003e false\nisLeapYear(\"2000\"); //=\u003e false\nisLeapYear(new Date(2016, 1, 1)); //=\u003e true\nisLeapYear(\"13 December 400 00:07:00 GMT\", true); //=\u003e { year: 400, result: true }\n```\n\n### [Node.js 🐢🚀](https://www.npmjs.com/package/@ultirequiem/leap-year)\n\n```typescript\nimport { isLeapYear } from \"@ultirequiem/leap-year\";\n```\n\n### [Browser 🌐](https://developer.mozilla.org/en-US/docs/Glossary/Browser)\n\nYou can use any [CDN](https://en.wikipedia.org/wiki/Content_delivery_network) 🔥\n\nEg. [ESM](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules)\n▶ [SkyPack](https://cdn.skypack.dev/@ultirequiem/leap-year) _/_\n[script tag](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script) ▶\n[JSDelivr](https://cdn.jsdelivr.net/npm/@ultirequiem/leap-year).\n\nThe API is the same on all this platforms.\n\n## API\n\n[Autogenerated Documentation](https://doc.deno.land/https://deno.land/x/leap_year/mod.ts)\n🚀\n\n## CLI Tool\n\nWas done mainly as usage example.\n\n### Install\n\n- Node.js 🦍\n\n```sh\nnpm install -g @ultirequiem/leap-year\n```\n\n- Deno 🦕\n\n```sh\ndeno install https://deno.land/x/leap_year/leap-year.ts\n```\n\n### Usage\n\n```sh\nleap-year \"13 October 2020 00:07:00 GMT\" 400 345\ntrue\ntrue\nfalse\n```\n\nOr with the verbose flag 👇\n\n```sh\nleap-year \"13 October 2020 00:07:00 GMT\" 400 345 --verbose # -v\n2020 is a leap year.\n400 is a leap year.\n345 is not a leap year.\n```\n\n## Related\n\n- [leap_year_utils](https://github.com/UltiRequiem/leap_year_utils): Utilities\n  around this package.\n\n- [parse_datelike](https://github.com/UltiRequiem/parse_datelike): Parse a\n  number/string/date to a number/string/date.\n\n- [leap-year-api](https://github.com/UltiRequiem/leap-year-api): A REST API to\n  know if a year is leap or not.\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 star the repo ⭐\n\n## Versioning\n\nWe use [Semantic Versioning](http://semver.org). For the versions available, see\nthe [tags](https://github.com/UltiRequiem/leap-year/tags) 🏷️\n\n## Licence\n\nLicensed under the MIT License 📄\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fultirequiem%2Fleap-year","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fultirequiem%2Fleap-year","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fultirequiem%2Fleap-year/lists"}