Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hebcal/triennial

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hebcal/triennial

Javascript Triennial Torah Readings

  • 1.4.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
196
increased by326.09%
Maintainers
1
Weekly downloads
 
Created
Source

@hebcal/triennial

Javascript Triennial Torah Readings

Build Status

“Many congregations pattern their weekly Torah reading cycle after a system similar to the one used in ancient Israel during the rabbinic period. In this system, the traditional parashiot are each divided into three shorter segments, and the whole Torah is completed once every three years. The system has both advantages and disadvantages, but its ability to shorten the length of Torah reading without sacrificing the complete reading of the Torah on a regular basis has made it the choice of some synagogues in the Conservative Movement.”

A Complete Triennial System for Reading the Torah, Committee on Jewish Law and Standards of the Rabbinical Assembly

Update December 2021: In November 2020, the CJLS modified the triennial cycle for some combined parshiyot to change the reading for year 3 to be the third section of the parashah.

Modification of the Triennial Cycle Readings for Combined Parashot in Certain Years, Rabbi Miles B. Cohen

Update August 2022: Incorporated An Emendation to Richard Eisenberg’s Complete Triennial System for Reading Torah, to Address a Rare Situation, Rabbi Joshua Heller, 2012

Installation

$ npm install @hebcal/triennial

Synopsis

import {HebrewCalendar, HDate, Event} from '@hebcal/core';
import {formatAliyahWithBook} from '@hebcal/leyning';
import {getTriennialForParshaHaShavua} from '@hebcal/triennial';

const events = HebrewCalendar.calendar({sedrot: true, noHolidays: true});
const ev = events.find((ev) => ev.getDesc() == 'Parashat Pinchas');
const triReading = getTriennialForParshaHaShavua(ev);
for (const [num, aliyah] of Object.entries(triReading)) {
  const number = num == 'M' ? 'maftir' : `aliyah ${num}`;
  const str = formatAliyahWithBook(aliyah);
  console.log(`Triennial ${number}: ${str}`);
}

Classes

Triennial

Triennial Torah readings

Functions

getTriennial(year, [il])Triennial

Calculates the 3-year readings for a given year

getTriennialHaftaraForHoliday(key, yearNum)Object

Looks up the alternative triennial Haftara for a holiday

getTriennialForParshaHaShavua(ev, [il])TriennialAliyot

Looks up the triennial leyning for this Parashat HaShavua

writeTriennialCsv(stream, hyear, [il])

Typedefs

TriennialAliyot : Object

Represents triennial aliyot for a given date

Triennial

Triennial Torah readings

Kind: global class

new Triennial([hebrewYear], [il])

Calculates Triennial schedule for entire Hebrew year

ParamTypeDefaultDescription
[hebrewYear]numberHebrew Year (default current year)
[il]booleanfalseIsrael (default false)

triennial.getReading(parsha, yearNum) ⇒ TriennialAliyot

Kind: instance method of Triennial
Returns: TriennialAliyot - result, including a map of aliyot 1-7 plus "M"

ParamTypeDescription
parshastringparsha name ("Bereshit" or "Achrei Mot-Kedoshim")
yearNumnumber0 through 2 for which year of Triennial cycle

triennial.getStartYear() ⇒ number

Kind: instance method of Triennial

triennial.debug() ⇒ string

Kind: instance method of Triennial

Triennial.getYearNumber(year) ⇒ number

Returns triennial year 1, 2 or 3 based on this Hebrew year

Kind: static method of Triennial

ParamTypeDescription
yearnumberHebrew year

Triennial.getCycleStartYear(year) ⇒ number

Returns Hebrew year that this 3-year triennial cycle began

Kind: static method of Triennial

ParamTypeDescription
yearnumberHebrew year

getTriennial(year, [il]) ⇒ Triennial

Calculates the 3-year readings for a given year

Kind: global function

ParamTypeDefaultDescription
yearnumberHebrew year
[il]booleanfalseIsrael

getTriennialHaftaraForHoliday(key, yearNum) ⇒ Object

Looks up the alternative triennial Haftara for a holiday

Kind: global function

ParamType
keystring
yearNumnumber

getTriennialForParshaHaShavua(ev, [il]) ⇒ TriennialAliyot

Looks up the triennial leyning for this Parashat HaShavua

Kind: global function
Returns: TriennialAliyot - a map of aliyot 1-7 plus "M"

ParamTypeDefaultDescription
evEvent
[il]booleanfalseIsrael

writeTriennialCsv(stream, hyear, [il])

Kind: global function

ParamTypeDefault
streamfs.WriteStream
hyearnumber
[il]booleanfalse

TriennialAliyot : Object

Represents triennial aliyot for a given date

Kind: global typedef
Properties

NameTypeDescription
aliyotObject.<string, Aliyah>a map of aliyot 1-7 plus "M"
yearNumnumberyear number, 0-2
dateDateShabbat date for when this parsha is read in this 3-year cycle
[readSeparately]booleantrue if a double parsha is read separately in year yearNum
[date1]DateShabbat date of the first part of a read-separately aliyah pair
[date2]DateShabbat date of the second part of a read-separately aliyah pair
[fullParsha]booleantrue if we read the entire parsha

FAQs

Package last updated on 05 Oct 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc