holidays-cs
Advanced tools
Comparing version 1.0.2 to 2.0.0
export * from './easter.js'; | ||
export * from './holidays.js'; | ||
export * from './fathers-day.js'; | ||
export * from './mothers-day.js'; | ||
export * from './significant.js'; | ||
export * from './shops.js'; | ||
export * from './get-meta.js'; |
export * from './easter.js'; | ||
export * from './holidays.js'; | ||
export * from './fathers-day.js'; | ||
export * from './mothers-day.js'; | ||
export * from './significant.js'; | ||
export * from './shops.js'; | ||
export * from './get-meta.js'; |
import { DateTime } from 'luxon'; | ||
import data from './significant.json' assert { type: 'json' }; | ||
import data from './significant.json'; | ||
/** | ||
@@ -4,0 +4,0 @@ * Zákon č. 245/2000 Sb., o státních svátcích a národních svátcích České republiky |
{ | ||
"name": "holidays-cs", | ||
"version": "1.0.2", | ||
"version": "2.0.0", | ||
"author": "Roman Ožana <roman@ozana.cz> (https://ozana.cz)", | ||
@@ -37,3 +37,3 @@ "repository": "OzzyCzech/holidays-cs", | ||
"dependencies": { | ||
"easter-date": "0.0.9", | ||
"easter-date": "0.0.10", | ||
"luxon": "^3.4.4" | ||
@@ -43,6 +43,6 @@ }, | ||
"@types/luxon": "^3.4.2", | ||
"@types/node": "^20.12.7", | ||
"@types/node": "^20.12.12", | ||
"ava": "^6.1.2", | ||
"np": "^10.0.5", | ||
"tsx": "^4.7.3", | ||
"tsx": "^4.10.2", | ||
"typescript": "^5.4.5", | ||
@@ -49,0 +49,0 @@ "xo": "^0.58.0" |
@@ -161,20 +161,2 @@ # Holidays (cs) | ||
## Father's and Mother's Day | ||
Father's Day is celebrated on the **third Sunday in June**. | ||
Mother's Day is celebrated on the **second Sunday in May**. | ||
```javascript | ||
import {DateTime} from 'luxon'; | ||
import {isFathersDay, getFathersDay, isMothersDay, getMothersDay} from 'holidays-cs'; | ||
// 16. june 2024 | ||
isFathersDay(DateTime.fromISO('2024-06-16')); // true | ||
getFathersDay(2024).toISODate(); // 2024-06-16 | ||
// 12. may 2024 | ||
isMothersDay(DateTime.fromISO('2024-05-12')); // true | ||
getMothersDay(2024).toISODate(); // 2024-05-12 | ||
``` | ||
## Credits | ||
@@ -181,0 +163,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23656
16
507
167
+ Addedeaster-date@0.0.10(transitive)
- Removedeaster-date@0.0.9(transitive)
Updatedeaster-date@0.0.10