This library gives you a list of holidays for a given year and location. The definitions for calculating the holidays are stored in configuration files.
The original idea comes from Jollyday, a Java project offering the same functionality.
Wrapper | Source code | Usage | Returns |
---|---|---|---|
holidays | holidays | when you have the definition files stored locally Example holiday-server |
Promises |
holidays-http | holidays-http | when you have the definition files stored on a webserver Example here |
Promises |
holidays-rjxs | to be implemented | when you have the definition files stored on a webserver | Observables |
Following types of holidays are planned/implemented
Enum value | Description | Implementation status |
---|---|---|
CHRISTIAN | Details | ✅ |
ETHIOPIAN_ORTHODOX | Details | ❌ |
FIXED_DATE | Details | ✅ |
FIXED_WEEKDAY | Details | ✅ |
HEBREW | Details | ❌ |
ISLAMIC | Details | ❌ |
RELATIVE_BETWEEN_FIXED | Details | ✅ |
RELATIVE_TO_DATE | Details | ✅ |
RELATIVE_TO_WEEKDAY | Details | ✅ |
Source: holiday-site
Demo: here
Source holiday-server
If you find a bug, have a great idea, can translate the resources, or discovered missing or wrong holiday definitions, you can
- create an issue
- correct/implement yourself and create a pull request. If you write code, please have a look at the coding-guidelines