{"id":15854209,"url":"https://github.com/afeiship/next-weeks","last_synced_at":"2026-04-30T00:02:34.758Z","repository":{"id":57122984,"uuid":"316949891","full_name":"afeiship/next-weeks","owner":"afeiship","description":"Weeks for next.","archived":false,"fork":false,"pushed_at":"2024-01-30T23:56:57.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-22T22:09:58.899Z","etag":null,"topics":["cn","date","day","emoji","en","jswork","next","nx","week","weekday","weekend","weekly","weeks"],"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/afeiship.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2020-11-29T12:48:45.000Z","updated_at":"2024-01-30T06:59:18.000Z","dependencies_parsed_at":"2024-10-05T19:41:11.383Z","dependency_job_id":null,"html_url":"https://github.com/afeiship/next-weeks","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/afeiship/next-weeks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-weeks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-weeks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-weeks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-weeks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afeiship","download_url":"https://codeload.github.com/afeiship/next-weeks/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-weeks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32448883,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"ssl_error","status_checked_at":"2026-04-29T22:10:49.234Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cn","date","day","emoji","en","jswork","next","nx","week","weekday","weekend","weekly","weeks"],"created_at":"2024-10-05T19:41:08.443Z","updated_at":"2026-04-30T00:02:34.714Z","avatar_url":"https://github.com/afeiship.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# next-weeks\n\u003e Weeks for next.\n\n[![version][version-image]][version-url]\n[![license][license-image]][license-url]\n[![size][size-image]][size-url]\n[![download][download-image]][download-url]\n\n## installation\n```bash\nnpm install -S @jswork/next-weeks\n```\n\n## apis\n| api | params        | description                                    |\n| --- | ------------- | ---------------------------------------------- |\n| at  | (index, type) | Get en/cn/emoji by index(0-6).                 |\n| day | (day, type)   | Get en/cn/emoji by js date day.(1,2,3,4,5,6,0) |\n\n## usage\n```js\nimport NxWeeks from '@jswork/next-weeks';\n\n// at:\nNxWeeks.at(0, 'en')   // 'Monday'\nNxWeeks.at(1, 'en')   // 'Tuesday'\nNxWeeks.at(2, 'en')   // 'Wednesday'\nNxWeeks.at(3, 'en')   // 'Thursday'\nNxWeeks.at(4, 'en')   // 'Friday'\nNxWeeks.at(5, 'en')   // 'Saturday'\nNxWeeks.at(6, 'en')   // 'Sunday'\n\n\n// day:\nconst d1 = new Date('2020-11-23');\nconst d2 = new Date('2020-11-24');\nconst d3 = new Date('2020-11-25');\nconst d4 = new Date('2020-11-26');\nconst d5 = new Date('2020-11-27');\nconst d6 = new Date('2020-11-28');\nconst d7 = new Date('2020-11-29');\n\n// number or date instance\nNxWeeks.day(d1.getDay(), 'cn')  // '一'\nNxWeeks.day(d2.getDay(), 'cn')  // '二'\nNxWeeks.day(d3.getDay(), 'cn')  // '三'\nNxWeeks.day(d4, 'cn')  // '四'\nNxWeeks.day(d5, 'cn')  // '五'\nNxWeeks.day(d6, 'cn')  // '六'\nNxWeeks.day(d7, 'cn')  // '日'\n```\n\n## emoji\n- 周一(Mon) 😝\n- 周二(Tue) 😪\n- 周三(Wed) 😭\n- 周四(Thur) 🤪\n- 周五(Fri) 🤣\n- 周六(Sat) 😎\n- 周日(Sun) 😂\n\n## license\nCode released under [the MIT license](https://github.com/afeiship/next-weeks/blob/master/LICENSE.txt).\n\n[version-image]: https://img.shields.io/npm/v/@jswork/next-weeks\n[version-url]: https://npmjs.org/package/@jswork/next-weeks\n\n[license-image]: https://img.shields.io/npm/l/@jswork/next-weeks\n[license-url]: https://github.com/afeiship/next-weeks/blob/master/LICENSE.txt\n\n[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-weeks\n[size-url]: https://github.com/afeiship/next-weeks/blob/master/dist/next-weeks.min.js\n\n[download-image]: https://img.shields.io/npm/dm/@jswork/next-weeks\n[download-url]: https://www.npmjs.com/package/@jswork/next-weeks\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fnext-weeks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafeiship%2Fnext-weeks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fnext-weeks/lists"}