{"id":19310866,"url":"https://github.com/tochy97/calender","last_synced_at":"2026-02-06T22:02:29.906Z","repository":{"id":259714872,"uuid":"879282878","full_name":"tochy97/calender","owner":"tochy97","description":"Node calendar calculation functions.","archived":false,"fork":false,"pushed_at":"2025-01-10T01:12:33.000Z","size":412,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-30T07:51:34.349Z","etag":null,"topics":["javascript","node","webpack"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tochy97.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2024-10-27T13:58:44.000Z","updated_at":"2025-01-10T01:12:36.000Z","dependencies_parsed_at":"2024-12-05T03:19:08.180Z","dependency_job_id":"7206182e-6f72-4280-99fb-7a01d8bf2162","html_url":"https://github.com/tochy97/calender","commit_stats":null,"previous_names":["tochy97/calender"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tochy97/calender","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tochy97%2Fcalender","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tochy97%2Fcalender/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tochy97%2Fcalender/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tochy97%2Fcalender/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tochy97","download_url":"https://codeload.github.com/tochy97/calender/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tochy97%2Fcalender/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29178548,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T20:14:21.878Z","status":"ssl_error","status_checked_at":"2026-02-06T20:14:21.443Z","response_time":59,"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":["javascript","node","webpack"],"created_at":"2024-11-10T00:26:46.211Z","updated_at":"2026-02-06T22:02:29.881Z","avatar_url":"https://github.com/tochy97.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Calender-Calculate\n\nCalculation function to build a calender object.\n\n## Getting Started\n\n`npm i @egeonu/calender-calculate`\n\n## Usage\n\nA few examples of useful commands and/or tasks.\n\n### getPast(endYear)\n```\nimport { getPast } from \"@egeonu/calender-calculate\";\n    const past = await getPast(1997)\n```\n#### Input(s)\n* endYear (number): Ending year for timeline.\n#### Output\n* An array of months starting from January of the input year til December of the current year.\n\n### getYear(today)\n```\nimport { getYear } from \"@egeonu/calender-calculate\";\n    const date = new Date(2024, 10, 30);\n    const past = getYear(date)\n```\n#### Input(s)\n* today (Date): Date of month to retrieve.\n#### Output\n* An array of months starting from January til December of the input.\n\n### getMonth(maxIndex, dayIndex, monthIndex, leap, yearIndex, stringDay)\n``` \nimport { getMonth } from \"@egeonu/calender-calculate\";\n    const past = getMonth(31, 28, 7, false, 1997, \"Monday\")\n```\n#### Input(s)\n* monthMax (number): Maximum number of days in the month.\n* dayIndex (number): Numeric value for the day.\n* monthIndex (number): Numeric value for the month.\n* leap (boolean): True/false indicator if it is a leap year.\n* yearIndex (number): Numeric value for the year.\n* stringDay (string): String value for the day.\n#### Output\n* weeks (Array): An array of weeks,\n* month (string): String value for the month,\n* index (number): Numeric value for the month.,\n* year (number): Numeric value for the year.,\n* isLeap (boolean): True/false indicator if it is a leap year.\n\n### getWeek(dayIndex, stringDay, monthMaxIndex)\n```\nimport { getWeek } from \"@egeonu/calender-calculate\";\n    const past = getWeek(28, \"Monday\", 31)\n```\n#### Input(s)\n* dayIndex (number): Numeric value for the day.\n* stringDay (string): String value for the day.\n* monthMaxIndex (number): Maximum number of days in the month.\n#### Output\n* days (Array): An array of days (object below).\n```\ntype Day = {\n    index?: number,\n    day?: string\n};\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftochy97%2Fcalender","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftochy97%2Fcalender","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftochy97%2Fcalender/lists"}