npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

hebrew-dates

v1.0.1

Published

Modern Hebrew/Jewish calendar library for TypeScript — holidays, date conversion, formatting in Hebrew

Readme

hebrew-dates — Hebrew/Jewish Calendar, Holidays & Date Conversion for TypeScript

npm version npm downloads CI TypeScript License: MIT Zero dependencies

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.

hebrew-dates demo — converting Gregorian dates to Hebrew calendar with holiday lookup

Install

npm install hebrew-dates

Usage

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

API

Date Conversion

| Function | Description | | ---------------------- | -------------------------------- | | toHebrew(date: Date) | Convert Gregorian to Hebrew date | | toGregorian(hDate) | Convert Hebrew to Gregorian date |

Formatting

| 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 |

Holidays

| 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

Calendar Utilities

| 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 |

Supported Holidays

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

Hebrew Month Numbers

| # | 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) | אדר ב׳ |

Author

Ofer Shapira

LinkedIn GitHub

License

MIT © Ofer Shapira