{"id":38543088,"url":"https://github.com/knowbee/rwa-holidays","last_synced_at":"2026-01-17T07:13:07.191Z","repository":{"id":65472765,"uuid":"242132467","full_name":"knowbee/rwa-holidays","owner":"knowbee","description":"🥂 NPM package for getting Rwanda holidays for a given year or determine if current date is a holiday","archived":false,"fork":false,"pushed_at":"2020-07-19T15:53:50.000Z","size":148,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-04T22:48:55.930Z","etag":null,"topics":["holidays","konji","rwanda","rwanda-holidays"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/rwa-holidays","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/knowbee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-21T12:18:09.000Z","updated_at":"2024-07-31T14:42:50.000Z","dependencies_parsed_at":"2023-01-25T02:25:13.055Z","dependency_job_id":null,"html_url":"https://github.com/knowbee/rwa-holidays","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/knowbee/rwa-holidays","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowbee%2Frwa-holidays","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowbee%2Frwa-holidays/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowbee%2Frwa-holidays/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowbee%2Frwa-holidays/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knowbee","download_url":"https://codeload.github.com/knowbee/rwa-holidays/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowbee%2Frwa-holidays/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28503211,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T06:57:29.758Z","status":"ssl_error","status_checked_at":"2026-01-17T06:56:03.931Z","response_time":85,"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":["holidays","konji","rwanda","rwanda-holidays"],"created_at":"2026-01-17T07:13:07.079Z","updated_at":"2026-01-17T07:13:07.181Z","avatar_url":"https://github.com/knowbee.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rwa-holidays\n\n[![Build Status](https://travis-ci.org/knowbee/rwa-holidays.svg?branch=master)](https://travis-ci.org/knowbee/rwa-holidays)\n[![Npm Weekly Downloads](https://badgen.net/npm/dw/rwa-holidays)](https://badgen.net/npm/dw/rwa-holidays)\n[![npm](https://img.shields.io/npm/v/rwa-holidays.svg)](https://www.npmjs.com/package/rwa-holidays)\n[![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.svg?v=102)](https://github.com/ellerbrock/open-source-badge/)\n[![Open Source Love](https://badges.frapsoft.com/os/mit/mit.svg?v=102)](https://github.com/ellerbrock/open-source-badge/)\n\nNPM package for getting Rwanda holidays for a given year or determine if current date is a holiday, it also shifts holidays when actual holiday happens in weekend\n\n### Installation\n\n```\nnpm install rwa-holidays\n```\n\n```\nyarn add rwa-holidays\n```\n\n### Usage\n\nTo get a list of all Rwanda holidays in a given year, use the `getHolidays` method. If no year is passed in, it uses the current year.\n\n```javascript\nconst { getHolidays } = require('rwa-holidays');\n\nconst holidays = getHolidays(2020);\n\n\n// Results\n[\n  {\n    name: 'Genocide against the Tutsi Memorial Day',\n    date: 2020-04-07T00:00:00.000Z,\n    dateString: '2020-4-7'\n  },\n  {\n    name: 'Liberation Day',\n    date: 2020-07-03T00:00:00.000Z,\n    dateString: '2020-7-3'\n  },\n  {\n    name: 'National Heroes Day',\n    date: 2020-01-31T00:00:00.000Z,\n    dateString: '2020-1-31'\n  },\n  {\n    name: \"New Year's Day\",\n    date: 2020-01-01T00:00:00.000Z,\n    dateString: '2020-1-1'\n  },\n  {\n    name: 'Day after New Year’ s Day',\n    date: 2020-01-02T00:00:00.000Z,\n    dateString: '2020-1-2'\n  },\n  {\n    name: 'Labor Day',\n    date: 2020-05-01T00:00:00.000Z,\n    dateString: '2020-5-1'\n  },\n  {\n    name: 'Independence Day',\n    date: 2020-07-01T00:00:00.000Z,\n    dateString: '2020-7-1'\n  },\n  {\n    name: 'Assumption Day',\n    date: 2020-08-14T00:00:00.000Z,\n    dateString: '2020-8-14'\n  },\n  {\n    name: 'Christmas Day',\n    date: 2020-12-25T00:00:00.000Z,\n    dateString: '2020-12-25'\n  },\n  {\n    name: 'Boxing Day',\n    date: 2020-12-25T00:00:00.000Z,\n    dateString: '2020-12-25'\n  },\n  {\n    name: 'Umuganura Day',\n    date: 2020-08-07T00:00:00.000Z,\n    dateString: '2020-8-7'\n  }\n]\n```\n\nFind if a date is a holiday, use the `isAHoliday` method. If no argument is provided, defaults to the current date:\n\n```javascript\nconst { isAHoliday } = require(\"rwa-holidays\");\n\nconst options = {\n  utc: false\n};\nconst isAHoliday = isAHoliday(my_date, options);\n// Returns true or false\n```\n\nFor holidays that fall on Saturdays holidays are shifted to Friday:\n\n```javascript\nconst { isAHoliday } = require(\"rwa-holidays\");\nconsole.log(isHoliday(new Date(\"2010-12-25\"))); // False\nconsole.log(isHoliday(new Date(\"2010-12-24\"))); // True\n```\n\nFor holidays that fall on Sundays holidays are shifted to Monday:\n\n```javascript\nconst { isAHoliday } = require(\"rwa-holidays\");\nconsole.log(isHoliday(new Date(\"2005-12-25\"))); // False\nconsole.log(isHoliday(new Date(\"2005-12-26\"))); // True\n```\n\n## Contribution\n\n- Please before making a PR, read first this [Contributing Guideline](./CONTRIBUTING.md)\n\n## License\n\nMIT\n\n## Author\n\nIgwaneza Bruce\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknowbee%2Frwa-holidays","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknowbee%2Frwa-holidays","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknowbee%2Frwa-holidays/lists"}