{"id":20572835,"url":"https://github.com/datetime/year-weeks","last_synced_at":"2025-07-01T05:38:07.987Z","repository":{"id":57403465,"uuid":"21280599","full_name":"datetime/year-weeks","owner":"datetime","description":"Get the number of weeks in year - leap or not.","archived":false,"fork":false,"pushed_at":"2017-05-24T20:11:35.000Z","size":21,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-19T13:18:47.385Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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":"history.md","contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-27T15:36:28.000Z","updated_at":"2019-05-27T12:12:46.000Z","dependencies_parsed_at":"2022-09-04T08:10:58.636Z","dependency_job_id":null,"html_url":"https://github.com/datetime/year-weeks","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datetime%2Fyear-weeks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datetime%2Fyear-weeks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datetime%2Fyear-weeks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datetime%2Fyear-weeks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datetime","download_url":"https://codeload.github.com/datetime/year-weeks/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:11.896Z","updated_at":"2025-03-06T10:23:08.107Z","avatar_url":"https://github.com/datetime.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## [![npm][npmjs-img]][npmjs-url] [![mit license][license-img]][license-url] [![build status][travis-img]][travis-url] [![coverage status][coveralls-img]][coveralls-url] [![deps status][daviddm-img]][daviddm-url]\n\n\u003e Get the number of weeks in year - leap or not.\n\n## Install\n```\nnpm i --save year-weeks\nnpm test\n```\n\n\n## API\n\u003e For more use-cases see the [tests](./test.js)\n\n### [yearWeeks](./index.js#L37)\n\u003e Get the number of weeks in year - leap or not.\n\n- `[val]` **{Date|Number}** every valid Date format string, Date object or year as number\n- `return` **{Number}**\n\n**Example:**\n\n```js\nvar yearWeeks = require('year-weeks');\n\nyearWeeks(2014);\n//=\u003e 52\n\nyearWeeks(2016);\n//=\u003e 52\n\nyearWeeks(new Date(2016, 0));\n//=\u003e 52\n\nyearWeeks('2012-12-17T03:24:00');\n//=\u003e 52\n```\n\n\n## Author\n**Charlike Mike Reagent**\n+ [gratipay/tunnckoCore][author-gratipay]\n+ [twitter/tunnckoCore][author-twitter]\n+ [github/tunnckoCore][author-github]\n+ [npmjs/tunnckoCore][author-npmjs]\n+ [more ...][contrib-more]\n\n\n## License [![MIT license][license-img]][license-url]\nCopyright (c) 2014-2015 [Charlike Mike Reagent][contrib-more], [contributors][contrib-graf].  \nReleased under the [`MIT`][license-url] license.\n\n\n[npmjs-url]: http://npm.im/year-weeks\n[npmjs-img]: https://img.shields.io/npm/v/year-weeks.svg?style=flat\u0026label=year-weeks\n\n[coveralls-url]: https://coveralls.io/r/datetime/year-weeks?branch=master\n[coveralls-img]: https://img.shields.io/coveralls/datetime/year-weeks.svg?style=flat\n\n[license-url]: https://github.com/datetime/year-weeks/blob/master/license.md\n[license-img]: https://img.shields.io/badge/license-MIT-blue.svg?style=flat\n\n[travis-url]: https://travis-ci.org/datetime/year-weeks\n[travis-img]: https://img.shields.io/travis/datetime/year-weeks.svg?style=flat\n\n[daviddm-url]: https://david-dm.org/datetime/year-weeks\n[daviddm-img]: https://img.shields.io/david/datetime/year-weeks.svg?style=flat\n\n[author-gratipay]: https://gratipay.com/tunnckoCore\n[author-twitter]: https://twitter.com/tunnckoCore\n[author-github]: https://github.com/tunnckoCore\n[author-npmjs]: https://npmjs.org/~tunnckocore\n\n[contrib-more]: http://j.mp/1stW47C\n[contrib-graf]: https://github.com/datetime/year-weeks/graphs/contributors\n\n***\n\n_Powered and automated by [kdf](https://github.com/tunnckoCore), March 02, 2015_\n\n[year-days]: https://github.com/sindresorhus/year-days","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatetime%2Fyear-weeks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatetime%2Fyear-weeks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatetime%2Fyear-weeks/lists"}