Socket
Socket
Sign inDemoInstall

date-easter

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

date-easter

Calculates Easter for a given year


Version published
Weekly downloads
147K
increased by4.28%
Maintainers
1
Weekly downloads
 
Created

What is date-easter?

The date-easter npm package is designed to calculate the date of Easter for a given year. It provides functionality to determine the date of Easter Sunday based on different calendar systems, such as the Gregorian and Julian calendars.

What are date-easter's main functionalities?

Calculate Easter Date (Gregorian Calendar)

This feature allows you to calculate the date of Easter Sunday for a given year using the Gregorian calendar. The code sample demonstrates how to use the `gregorianEaster` function to get the date of Easter in 2023.

const easter = require('date-easter');
const year = 2023;
const easterDate = easter.gregorianEaster(year);
console.log(`Easter in ${year} is on: ${easterDate}`);

Calculate Easter Date (Julian Calendar)

This feature allows you to calculate the date of Easter Sunday for a given year using the Julian calendar. The code sample demonstrates how to use the `julianEaster` function to get the date of Easter in 2023 according to the Julian calendar.

const easter = require('date-easter');
const year = 2023;
const easterDate = easter.julianEaster(year);
console.log(`Easter in ${year} (Julian) is on: ${easterDate}`);

Other packages similar to date-easter

Keywords

FAQs

Package last updated on 24 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc