easter-utils
v1.0.0
Published
A lightweight utility to calculate Easter Sunday, Good Friday, and other related holidays.
Maintainers
Readme
easter-utils
🎉 A lightweight utility to calculate Easter Sunday, Good Friday, and other Holy Week dates.
📦 Install
npm install easter-utils🚀 Usage
import {
calculateEasterSunday,
getGoodFriday,
getAshWednesday,
getPalmSunday,
getMaundyThursday,
getHolyWeekDates
} from 'easter-utils';
const dates = getHolyWeekDates(2025);
console.log("Easter Sunday:", dates.easterSunday.toDateString());
console.log("Good Friday:", dates.goodFriday.toDateString());
console.log("Palm Sunday:", dates.palmSunday.toDateString());
console.log("Maundy Thursday:", dates.maundyThursday.toDateString());
console.log("Ash Wednesday:", dates.ashWednesday.toDateString());🧠 Methods
calculateEasterSunday(year)getGoodFriday(year)getAshWednesday(year)getPalmSunday(year)getMaundyThursday(year)getHolyWeekDates(year)
📜 License
MIT
