Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
jewish-holidays
Advanced tools
An easy-to-use npm package for checking Jewish holidays and Shabbat.
## InstallationTo install the package, run one of the following commands:
npm i jewish-holidays
or with yarn
yarn add jewish-holidays
You can use the package in your JavaScript projects as shown below:
import { isYomTov, isShabbat } from 'jewish-holidays';
// Check if a date is Yom Tov
const date = new Date();
const isInChutzLaaretz = true; // Adjust as needed
console.log(isYomTov(date, isInChutzLaaretz)); // true or false
// Check if a date is Shabbat
console.log(isShabbat(date)); // true or false
isYomTov
isYomTov(date: Date | BasicJewishDate, isChutzLaaretz: boolean) => boolean
Determines if the given date is a Yom Tov (Jewish holiday).
isShabbat
isShabbat(date: Date | BasicJewishDate) => boolean
Determines if the given date is Shabbat.
export declare const isErevShabbat: (date: Date | BasicJewishDate) => boolean;
export declare const isErevYomTov: (date: Date | BasicJewishDate) => boolean;
export declare const isCholHaMoed: (date: Date | BasicJewishDate, isChutzLaaretz?: boolean) => boolean;
export declare const isChanukah: (date: Date | BasicJewishDate) => boolean;
MIT
FAQs
Jewish holidays
The npm package jewish-holidays receives a total of 6 weekly downloads. As such, jewish-holidays popularity was classified as not popular.
We found that jewish-holidays demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.