{"id":20572842,"url":"https://github.com/datetime/leap-year","last_synced_at":"2025-03-06T10:23:08.042Z","repository":{"id":80187702,"uuid":"21255666","full_name":"datetime/leap-year","owner":"datetime","description":"Check if a year is a leap year","archived":false,"fork":false,"pushed_at":"2017-05-24T20:43:52.000Z","size":3,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-16T21:17:27.237Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/datetime.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":"2014-06-26T21:30:54.000Z","updated_at":"2019-07-15T21:00:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"700c88a0-ec54-444b-8652-76e21265304d","html_url":"https://github.com/datetime/leap-year","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datetime%2Fleap-year","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datetime%2Fleap-year/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datetime%2Fleap-year/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datetime%2Fleap-year/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datetime","download_url":"https://codeload.github.com/datetime/leap-year/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242188561,"owners_count":20086390,"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-11-16T05:24:13.981Z","updated_at":"2025-03-06T10:23:08.016Z","avatar_url":"https://github.com/datetime.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# leap-year [![Build Status](https://travis-ci.org/datetime/leap-year.svg?branch=master)](https://travis-ci.org/datetime/leap-year)\n\n\u003e Check if a year is a [leap year](http://en.wikipedia.org/wiki/Leap_year)\n\n\n## Install\n\n```\n$ npm install --save leap-year\n```\n\n\n## Usage\n\n```js\nvar leapYear = require('leap-year');\n\nleapYear(2014);\n//=\u003e false\n\nleapYear(2016);\n//=\u003e true\n```\n\n\n## API\n\n### leapYear([year])\n\n#### year\n\nType: `number`  \nDefault: current year\n\n### leapYear([date])\n\n#### date\n\nType: `date`  \nDefault: `new Date()`\n\n\n## License\n\nMIT © [Sindre Sorhus](http://sindresorhus.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatetime%2Fleap-year","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatetime%2Fleap-year","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatetime%2Fleap-year/lists"}