# pascua

> Get Easter date for any given year

Latest version **3.0.8** (published 2025-08-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install pascua
pnpm add pascua
yarn add pascua
bun add pascua
```

## Health

**Score 40/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.8 |
| Published | 2025-08-03 |
| First published | 2018-05-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Mauricio Robayo |
| Maintainers | mauriciorobayo |
| Keywords | easter, easter date, gregorian calendar, holidays |

## Links

- npm: https://www.npmjs.com/package/pascua
- Repository: https://github.com/MauricioRobayo/pascua
- Homepage: https://github.com/MauricioRobayo/pascua#readme
- Issues: https://github.com/MauricioRobayo/pascua/issues
- npm.io page: https://npm.io/package/pascua

## Alternatives

- [@js-joda/timezone](https://npm.io/package/@js-joda/timezone.md) — 383.4K weekly downloads
- [chartjs-adapter-moment](https://npm.io/package/chartjs-adapter-moment.md) — 210.8K weekly downloads
- [strftime](https://npm.io/package/strftime.md) — 171.2K weekly downloads
- [vue-flatpickr-component](https://npm.io/package/vue-flatpickr-component.md) — 115.8K weekly downloads
- [timepicker](https://npm.io/package/timepicker.md) — 51.0K weekly downloads

## Recent versions

- 3.0.8 (latest) — 2025-08-03
- 3.0.7 — 2025-08-03
- 3.0.6 — 2025-08-03
- 3.0.5 — 2025-08-03
- 3.0.4 — 2025-08-03
- 3.0.3 — 2025-08-03
- 3.0.2 — 2025-08-03
- 3.0.1 — 2025-08-03
- 3.0.0 — 2025-08-03
- 2.1.15 — 2025-08-03
- 2.1.14 — 2025-08-03
- 2.1.13 — 2025-08-03
- 2.1.12 — 2025-08-03
- 2.1.10 — 2025-08-03
- 2.1.8 — 2023-08-09
- … 23 more at https://npm.io/package/pascua/versions

## README

# Pascua 🙏

[![npm version](https://badge.fury.io/js/pascua.svg)](https://badge.fury.io/js/pascua)

Get Easter date for any given year using the ["Meeus/Jones/butcher" algorithm](https://en.wikipedia.org/wiki/Computus).

Easter is traditionally celebrated on the first Sunday after the [Paschal full moon](https://en.wikipedia.org/wiki/Ecclesiastical_full_moon).

## Installation

To install as a dependency:

```
npm install pascua
```

## Usage

`pascua` exports a single function that takes an optional `integer` between 1583 and 4099 for the year.

```js
import pascua from "pascua";

// Easter date for the current year
const easter = pascua();

// Easter date for 1984
const easter1984 = pascua(1984);
```

The function will return an object with the following properties:

| Property     | Description                             |
| ------------ | --------------------------------------- |
| `year`       | Year                                    |
| `month`      | Month                                   |
| `day`        | Day                                     |
| `toString()` | Returns a formatted string `YYYY-MM-DD` |

## TypeScript

Type definitions files are included.

## Contributing

Contributions, issues and feature requests are welcome!

## Show your support

Give a ⭐️ if you like this project!

## Acknowledgements

[date-easter](https://github.com/commenthol/date-easter/blob/master/index.js).

## License

[MIT](LICENSE)

---
_Source: https://npm.io/package/pascua · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
