{"id":20572824,"url":"https://github.com/datetime/weekday","last_synced_at":"2025-12-12T04:03:26.829Z","repository":{"id":16241918,"uuid":"18989652","full_name":"datetime/weekday","owner":"datetime","description":"Get the name and number of the current weekday. Or get the name of the weekday for a given number","archived":false,"fork":false,"pushed_at":"2016-11-01T00:35:31.000Z","size":15,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T09:51:50.115Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/datetime","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-04-21T10:39:35.000Z","updated_at":"2021-08-05T09:56:18.000Z","dependencies_parsed_at":"2022-08-02T23:00:49.990Z","dependency_job_id":null,"html_url":"https://github.com/datetime/weekday","commit_stats":null,"previous_names":["jonschlinkert/weekday"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datetime%2Fweekday","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datetime%2Fweekday/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datetime%2Fweekday/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datetime%2Fweekday/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datetime","download_url":"https://codeload.github.com/datetime/weekday/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248924145,"owners_count":21184030,"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:10.477Z","updated_at":"2025-12-12T04:03:26.508Z","avatar_url":"https://github.com/datetime.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# weekday [![NPM version](https://img.shields.io/npm/v/weekday.svg?style=flat)](https://www.npmjs.com/package/weekday) [![NPM downloads](https://img.shields.io/npm/dm/weekday.svg?style=flat)](https://npmjs.org/package/weekday) [![Build Status](https://img.shields.io/travis/datetime/weekday.svg?style=flat)](https://travis-ci.org/datetime/weekday)\n\n\u003e Get the name and number of the current weekday. Or get the name of the weekday for a given number.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save weekday\n```\n\n## Usage\n\n```js\nvar weekday = require('weekday');\nweekday();\n//=\u003e 'Sunday' (current day)\n\nweekday('Sunday');\n//=\u003e '1'\n\nweekday(1);\n//=\u003e 'Sunday'\n\nweekday(4);\n//=\u003e 'Wednesday'\n```\n\n## About\n\n### Related projects\n\n* [time-diff](https://www.npmjs.com/package/time-diff): Returns the formatted, high-resolution time difference between `start` and `end` times. | [homepage](https://github.com/jonschlinkert/time-diff \"Returns the formatted, high-resolution time difference between `start` and `end` times.\")\n* [time-stamp](https://www.npmjs.com/package/time-stamp): Get a formatted timestamp. | [homepage](https://github.com/jonschlinkert/time-stamp \"Get a formatted timestamp.\")\n* [week](https://www.npmjs.com/package/week): Get the current week number. | [homepage](https://github.com/jonschlinkert/week \"Get the current week number.\")\n* [year](https://www.npmjs.com/package/year): Simple utility to get the current year with 2 or 4 digits. | [homepage](https://github.com/jonschlinkert/year \"Simple utility to get the current year with 2 or 4 digits.\")\n\n### Contributors\n\n| **Commits** | **Contributor**\u003cbr/\u003e | \n| --- | --- |\n| 12 | [jonschlinkert](https://github.com/jonschlinkert) |\n| 1 | [brentvatne](https://github.com/brentvatne) |\n| 1 | [davidohlin](https://github.com/davidohlin) |\n\n### Building docs\n\n_(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_\n\nTo generate the readme and API documentation with [verb](https://github.com/verbose/verb):\n\n```sh\n$ npm install -g verb verb-generate-readme \u0026\u0026 verb\n```\n\n### Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm install -d \u0026\u0026 npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT license](https://github.com/datetime/weekday/blob/master/LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.1.31, on September 19, 2016._","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatetime%2Fweekday","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatetime%2Fweekday","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatetime%2Fweekday/lists"}