1.0.1 • Published 11 months ago

@clownmeister/czech-holidays v1.0.1

Weekly downloads
-
License
-
Repository
github
Last release
11 months ago

@clownmeister/czech-holidays

GitHub license GitHub package.json version

Overview

@clownmeister/czech-holidays is a lightweight TypeScript package for managing Czech holidays. It provides functionality to determine if a given date is a Czech holiday and to retrieve the name of a holiday for a specific date.

Features

  • Determine if a date is a Czech holiday.
  • Retrieve the name of a Czech holiday for a given date.
  • Includes fixed holidays and dynamically calculated Easter holidays.
  • Easy to integrate with TypeScript projects.

Limitations

  • Does not provide historical data. i.e.: incorrect holidays for 100 years ago.

Installation

You can install @clownmeister/czech-holidays via npm or yarn:

# Using npm
npm install @clownmeister/czech-holidays

# Using yarn
yarn add @clownmeister/czech-holidays

Usage

import CzechHolidays from '@clownmeister/czech-holidays';

// Check if a date is a Czech holiday
const date = new Date('2024-12-24');
const isHoliday = CzechHolidays.isHoliday(date);

if (isHoliday) {
  console.log('This is a Czech holiday!');
} else {
  console.log('This is not a Czech holiday.');
}

// Get the name of a Czech holiday for a given date
const holidayName = CzechHolidays.getHolidayName(date);
console.log(`The holiday on ${date.toDateString()} is: ${holidayName}`);

License

This project is licensed under the terms of the MIT License - see the LICENSE file for details.

1.0.1

11 months ago

1.0.0

1 year ago

1.0.0-b10

1 year ago

1.0.0-b8

1 year ago

1.0.0-b9

1 year ago

1.0.0-b4

1 year ago

1.0.0-b5

1 year ago

1.0.0-b6

1 year ago

1.0.0-b7

1 year ago

1.0.0-b3

1 year ago

1.0.0-b2

1 year ago

1.0.0-b1

1 year ago