2.1.8 • Published 9 months ago

pascua v2.1.8

Weekly downloads
10
License
MIT
Repository
github
Last release
9 months ago

Pascua 🙏

npm version Build Status codecov CodeFactor

Calculate Easter date for a given year, traditionally celebrated on the first Sunday after the Paschal full moon, using the "Meeus/Jones/butcher" algorithm.

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.

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:

PropertyDescription
yearYear
monthMonth
dayDay
toString()Returns a formatted string YYYY-MM-DD

TypeScript

The module is written in TypeScript and 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.

License

MIT

2.1.8

9 months ago

2.1.7

9 months ago

2.1.6

2 years ago

2.1.5

3 years ago

2.1.4

3 years ago

2.1.3

3 years ago

2.1.2

3 years ago

2.1.1

3 years ago

2.0.2

4 years ago

2.1.0

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.1.12

4 years ago

1.1.9

4 years ago

1.1.11

4 years ago

1.1.10

4 years ago

1.1.8

4 years ago

1.1.7

5 years ago

1.1.5

5 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago