{"id":20572840,"url":"https://github.com/datetime/month-days","last_synced_at":"2026-04-22T04:02:45.587Z","repository":{"id":18157993,"uuid":"21255163","full_name":"datetime/month-days","owner":"datetime","description":"Get the number of days in a month","archived":false,"fork":false,"pushed_at":"2017-05-24T16:38:31.000Z","size":5,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-06T10:25:09.719Z","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}},"created_at":"2014-06-26T21:09:54.000Z","updated_at":"2018-11-12T16:07:46.000Z","dependencies_parsed_at":"2022-07-26T21:17:06.230Z","dependency_job_id":null,"html_url":"https://github.com/datetime/month-days","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/datetime/month-days","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datetime%2Fmonth-days","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datetime%2Fmonth-days/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datetime%2Fmonth-days/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datetime%2Fmonth-days/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datetime","download_url":"https://codeload.github.com/datetime/month-days/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datetime%2Fmonth-days/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32120402,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T00:31:26.853Z","status":"online","status_checked_at":"2026-04-22T02:00:05.693Z","response_time":58,"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":[],"created_at":"2024-11-16T05:24:13.174Z","updated_at":"2026-04-22T04:02:45.557Z","avatar_url":"https://github.com/datetime.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# month-days [![Build Status](https://travis-ci.org/datetime/month-days.svg?branch=master)](https://travis-ci.org/datetime/month-days)\n\n\u003e Get the number of days in a month\n\n\n## Install\n\n```\n$ npm install --save month-days\n```\n\n\n## Usage\n\n```js\nvar monthDays = require('month-days');\n\nmonthDays(1, 2016);\n//=\u003e 29\n```\n\n\n## API\n\n### monthDays([month], [year])\n\n#### month\n\nType: `number`  \nDefault: current UTC month\n\nNote that month is zero-index to be consistent with the native date methods.\n\n#### year\n\nType: `number`  \nDefault: current UTC year\n\n\n## License\n\nMIT © [Sindre Sorhus](http://sindresorhus.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatetime%2Fmonth-days","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatetime%2Fmonth-days","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatetime%2Fmonth-days/lists"}