{"id":20572838,"url":"https://github.com/datetime/year-days","last_synced_at":"2026-04-25T03:23:41.414Z","repository":{"id":80187710,"uuid":"21256028","full_name":"datetime/year-days","owner":"datetime","description":"Get the number of days in a year","archived":false,"fork":false,"pushed_at":"2017-05-24T20:45:43.000Z","size":4,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-16T21:17:27.128Z","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:45:11.000Z","updated_at":"2018-11-12T16:07:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"4e6e43d3-cf52-4fb9-9eb7-778b0e3d27c8","html_url":"https://github.com/datetime/year-days","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%2Fyear-days","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datetime%2Fyear-days/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datetime%2Fyear-days/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datetime%2Fyear-days/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datetime","download_url":"https://codeload.github.com/datetime/year-days/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242188554,"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:12.763Z","updated_at":"2026-04-25T03:23:36.380Z","avatar_url":"https://github.com/datetime.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# year-days [![Build Status](https://travis-ci.org/datetime/year-days.svg?branch=master)](https://travis-ci.org/datetime/year-days)\n\n\u003e Get the number of days in a year\n\n\n## Install\n\n```\n$ npm install --save year-days\n```\n\n\n## Usage\n\n```js\nvar yearDays = require('year-days');\n\nyearDays(2014);\n//=\u003e 365\n\nyearDays(2016);\n//=\u003e 366\n```\n\n\n## API\n\n### yearDays([year])\n\n#### year\n\nType: `number`  \nDefault: current year\n\n### yearDays([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%2Fyear-days","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatetime%2Fyear-days","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatetime%2Fyear-days/lists"}