2.1.8 • Published 2 years ago

pascua v2.1.8

Weekly downloads
10
License
MIT
Repository
github
Last release
2 years 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

2 years ago

2.1.7

2 years ago

2.1.6

3 years ago

2.1.5

4 years ago

2.1.4

4 years ago

2.1.3

4 years ago

2.1.2

4 years ago

2.1.1

4 years ago

2.0.2

5 years ago

2.1.0

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.1.12

5 years ago

1.1.9

5 years ago

1.1.11

5 years ago

1.1.10

5 years ago

1.1.8

5 years ago

1.1.7

7 years ago

1.1.5

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago