
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
hebrew-dates
Advanced tools
Modern Hebrew/Jewish calendar library for TypeScript — holidays, date conversion, formatting in Hebrew
Convert Gregorian to Hebrew dates, look up Jewish holidays, and format in Hebrew — all typed, tree-shakeable, zero dependencies.
import { toHebrew, formatHebrew, getHoliday } from "hebrew-dates";
const hDate = toHebrew(new Date(2024, 9, 3));
formatHebrew(hDate); // "א׳ תשרי תשפ״ה"
getHoliday(hDate); // { name: "Rosh Hashana", nameHe: "ראש השנה" }
Modern Hebrew/Jewish calendar library for TypeScript. Zero dependencies.

npm install hebrew-dates
import {
toHebrew,
toGregorian,
formatHebrew,
formatHebrewEn,
getHoliday,
getHolidaysInMonth,
} from "hebrew-dates";
const hDate = toHebrew(new Date(2024, 9, 3));
// { year: 5785, month: 7, day: 1 }
formatHebrew(hDate);
// "א׳ תשרי תשפ״ה"
formatHebrewEn(hDate);
// "1 Tishrei 5785"
const holiday = getHoliday(hDate);
// { name: "Rosh Hashana", nameHe: "ראש השנה", type: "major" }
const gregDate = toGregorian({ year: 5785, month: 7, day: 10 });
// Date object for Yom Kippur 5785
const tishrei = getHolidaysInMonth(5785, 7);
// All holidays in Tishrei 5785
| Function | Description |
|---|---|
toHebrew(date: Date) | Convert Gregorian to Hebrew date |
toGregorian(hDate) | Convert Hebrew to Gregorian date |
| Function | Description |
|---|---|
formatHebrew(hDate) | Format as Hebrew string (e.g. "א׳ תשרי תשפ״ה") |
formatHebrewEn(hDate) | Format as English string (e.g. "1 Tishrei 5785") |
getMonthName(month, leap) | Hebrew month name |
getMonthNameEn(month, leap) | English month name |
| Function | Description |
|---|---|
getHoliday(hDate) | Get holiday for a date (or null) |
getHolidaysInMonth(year, month) | All holidays in a month |
Holiday types: major, minor, modern, fast
| Function | Description |
|---|---|
isLeapYear(year) | Check if Hebrew year is a leap year |
monthsInYear(year) | Number of months (12 or 13) |
daysInMonth(year, month) | Days in a Hebrew month |
hebrewYearDays(year) | Total days in a Hebrew year |
Major: Rosh Hashana, Yom Kippur, Sukkot, Shmini Atzeret, Simchat Torah, Pesach, Shavuot
Minor: Chanukah, Purim, Shushan Purim, Tu BiShvat, Lag BaOmer, Tu B'Av, Chol HaMoed
Fast Days: Tzom Gedaliah, Asara B'Tevet, Ta'anit Esther, Shiva Asar B'Tammuz, Tisha B'Av
Modern: Yom HaShoah, Yom HaZikaron, Yom HaAtzmaut, Yom Yerushalayim
| # | Month | Hebrew |
|---|---|---|
| 1 | Nisan | ניסן |
| 2 | Iyyar | אייר |
| 3 | Sivan | סיוון |
| 4 | Tammuz | תמוז |
| 5 | Av | אב |
| 6 | Elul | אלול |
| 7 | Tishrei | תשרי |
| 8 | Cheshvan | חשוון |
| 9 | Kislev | כסלו |
| 10 | Tevet | טבת |
| 11 | Shevat | שבט |
| 12 | Adar (Adar I in leap years) | אדר |
| 13 | Adar II (leap years only) | אדר ב׳ |
Ofer Shapira
FAQs
Modern Hebrew/Jewish calendar library for TypeScript — holidays, date conversion, formatting in Hebrew
The npm package hebrew-dates receives a total of 5 weekly downloads. As such, hebrew-dates popularity was classified as not popular.
We found that hebrew-dates demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.