Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hebcal/hebcal-es6
Hebcal, a perpetual Jewish Calendar (ES6)
https://github.com/hebcal/hebcal-es6
calendar daf-yomi hebrew-calendar hebrew-date holidays jewish-calendar jewish-holidays judaism yahrzeit zmanim
Last synced: about 2 months ago
JSON representation
Hebcal, a perpetual Jewish Calendar (ES6)
- Host: GitHub
- URL: https://github.com/hebcal/hebcal-es6
- Owner: hebcal
- License: gpl-2.0
- Created: 2020-04-12T16:35:57.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-04-23T05:28:51.000Z (5 months ago)
- Last Synced: 2024-04-23T09:49:01.902Z (5 months ago)
- Topics: calendar, daf-yomi, hebrew-calendar, hebrew-date, holidays, jewish-calendar, jewish-holidays, judaism, yahrzeit, zmanim
- Language: JavaScript
- Homepage:
- Size: 3.35 MB
- Stars: 89
- Watchers: 9
- Forks: 12
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @hebcal/core
Hebcal is a perpetual Jewish Calendar. This library converts between
Hebrew and Gregorian dates, and generates lists of Jewish holidays for
any year (past, present or future). Shabbat and holiday candle
lighting and havdalah times are approximated based on location. Torah
readings (Parashat HaShavua), Daf Yomi, and counting of the Omer can
also be specified. Hebcal also includes algorithms to calculate
yahrzeits, birthdays and anniversaries.[![Build Status](https://github.com/hebcal/hebcal-es6/actions/workflows/node.js.yml/badge.svg)](https://github.com/hebcal/hebcal-es6/actions/workflows/node.js.yml)
Hebcal was created in 1994 by Danny Sadinoff as a Unix/Linux program
written in C, inspired by similar functionality written in Emacs
Lisp. The initial JavaScript port was released in 2014 by Eyal
Schachter (age 15). This ECMAScript 2015 implementation was released
in 2020 by Michael J. Radwin. `@hebcal/core` targets both
browser-based JavaScript and server-side Node.js.Many users of this library will utilize the [HebrewCalendar](https://hebcal.github.io/api/core/classes/HebrewCalendar.html)
and [HDate](https://hebcal.github.io/api/hdate/classes/HDate.html) interfaces.## Installation
```bash
$ npm install @hebcal/core
```## Synopsis
```javascript
import {HebrewCalendar, HDate, Location, Event} from '@hebcal/core';const options: CalOptions = {
year: 1981,
isHebrewYear: false,
candlelighting: true,
location: Location.lookup('San Francisco'),
sedrot: true,
omer: true,
};
const events = HebrewCalendar.calendar(options);for (const ev of events) {
const hd = ev.getDate();
const date = hd.greg();
console.log(date.toLocaleDateString(), ev.render('en'), hd.toString());
}
```
## [API Documentation](https://hebcal.github.io/api/core/index.html)