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

v1.0.0

Published

Convert date objects into Hebrew calendar dates. TypeScript fork of hebrew-date.

Readme

hebrew-date-ts

Convert date objects into Hebrew calendar dates. TypeScript fork of hebrew-date.

This package is a TypeScript port of the original hebrew-date package by Ionică Bizău. The only change is the addition of TypeScript support and type definitions. All credit for the original implementation goes to the original author.

If you'd like to support the original author, please visit: https://github.com/IonicaBizau/hebrew-date

Installation

# Using npm
npm install hebrew-date-ts

# Using yarn
yarn add hebrew-date-ts

# Using pnpm
pnpm add hebrew-date-ts

Usage

import { hebrewDate } from "hebrew-date-ts";

// Using year, month, day (month is one-indexed, January = 1)
console.log(hebrewDate(2016, 10, 2));
// { year: 5776, month: 13, date: 29, month_name: 'Elul' }

// Using a Date object
const october = 9; // zero-indexed for Date constructor
console.log(hebrewDate(new Date(2016, october, 3)));
// { year: 5777, month: 1, date: 1, month_name: 'Tishri' }

CommonJS

const { hebrewDate } = require("hebrew-date-ts");

console.log(hebrewDate(2016, 10, 2));
// { year: 5776, month: 13, date: 29, month_name: 'Elul' }

API

hebrewDate(inputDate: Date): HebrewDateResult

hebrewDate(year: number, month: number, day: number): HebrewDateResult

Convert Gregorian dates into Hebrew calendar dates.

Parameters

  • inputDate (Date): A Date object representing the Gregorian date, OR
  • year (number): The Gregorian year
  • month (number): The Gregorian month (one-indexed, January being 1!)
  • day (number): The Gregorian day of month

Returns

HebrewDateResult - An object containing:

  • year (number): The Hebrew year
  • month (number): The Hebrew month (1-13)
  • date (number): The Hebrew day of month
  • month_name (string): The Hebrew month name

TypeScript

Full TypeScript support with exported types:

import { hebrewDate, HebrewDateResult } from "hebrew-date-ts";

const result: HebrewDateResult = hebrewDate(new Date());
console.log(result.year);       // number
console.log(result.month);      // number
console.log(result.date);       // number
console.log(result.month_name); // string

Contributing

For issues related to the TypeScript port, please open an issue at https://github.com/MendyLanda/hebrew-date-ts/issues.

For issues related to the core date conversion logic, please consider contributing to the original project at https://github.com/IonicaBizau/hebrew-date.

License

MIT - Original implementation by Ionică Bizău, TypeScript port by Mendy Landa.