Research
Recent Trends in Malicious Packages Targeting Discord
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
@hebcal/learning
Advanced tools
Readme
Javascript Daily Learning Schedules
Supports several learning schedules
dafYomi
mishnaYomi
nachYomi
tanakhYomi
psalms
yerushalmi-vilna
yerushalmi-schottenstein
rambam1
chofetzChaim
shemiratHaLashon
dafWeekly
dafWeeklySunday
$ npm install @hebcal/learning
import {HDate, DailyLearning} from '@hebcal/core';
import '@hebcal/learning';
const dt = new Date();
const hd = new HDate(dt);
const ev = DailyLearning.lookup('dafYomi', hd);
console.log(dt.toLocaleDateString(), hd.toString(), ev.render('en'));
Represents a tractate and page number
Event wrapper around a DafPage instance
Returns the Daf Yomi for given date
Event wrapper around a DafYomi instance
Event wrapper around a Mishna Yomi instance
A program of daily learning in which participants study two Mishnahs each day in order to finish the entire Mishnah in ~6 years.
Event wrapper around a Nach Yomi instance
A daily regimen of learning the books of Nevi'im (Prophets) and Ketuvim (Writings).
Event wrapper around a Yerushalmi Yomi result
Event wrapper around a Chofetz Chaim instance
Event wrapper around a Daily Rambam instance
Event wrapper around a Sefer Shemirat HaLashon instance
Event wrapper around a daily Psalms / Tehillim
Event wrapper around a daily weekly
Returns the Daf Yomi for given date
Event wrapper around a tanakhYomi
Yerushalmi Yomi configuration for Vilna Edition
Yerushalmi Yomi configuration for Schottenstein Edition
any
Using the Vilna edition, the Yerushalmi Daf Yomi program takes
~4.25 years or 51 months.
Unlike the Daf Yomi Bavli cycle, this Yerushalmi cycle skips both
Yom Kippur and Tisha B'Av (returning null
).
The page numbers are according to the Vilna
Edition which is used since 1900.
The Schottenstein edition uses different page numbers and takes ~6 years to complete.
Throws an exception if the date is before Daf Yomi Yerushalmi cycle began (2 February 1980 for Vilna, 14 November 2022 for Schottenstein).
any
Looks up Chofetz Chaim Calendar for date
any
Calculates Daily Rambam (Mishneh Torah) for 1 chapter a day cycle.
any
Looks up Sefer Shemirat HaLashon Calendar for date
any
Calculates Daily Psalms (Tehillim) for 30-day cycle.
DafPage
Daf-a-Week
TanakhYomi
Calculates Tanakh Yomi.
Object
Describes a mishna to be read
Object
Describes a chapter to be read
Represents a tractate and page number
Kind: global class
number
string
string
Initializes a daf yomi instance
Param | Type |
---|---|
name | string |
blatt | number |
number
Kind: instance method of DafPage
string
Kind: instance method of DafPage
string
Formats (with translation) the dafyomi result as a string like "Pesachim 34"
Kind: instance method of DafPage
Param | Type | Description |
---|---|---|
[locale] | string | Optional locale name (defaults to active locale). |
Event wrapper around a DafPage instance
Kind: global class
string
string
string
Param | Type |
---|---|
date | HDate |
daf | DafPage |
mask | number |
string
Returns Daf Yomi name including the 'Daf Yomi: ' prefix (e.g. "Daf Yomi: Pesachim 107").
Kind: instance method of DafPageEvent
Param | Type | Description |
---|---|---|
[locale] | string | Optional locale name (defaults to active locale). |
string
Returns Daf Yomi name without the 'Daf Yomi: ' prefix (e.g. "Pesachim 107").
Kind: instance method of DafPageEvent
Param | Type | Description |
---|---|---|
[locale] | string | Optional locale name (defaults to active locale). |
string
Returns a link to sefaria.org or dafyomi.org
Kind: instance method of DafPageEvent
Returns the Daf Yomi for given date
Initializes a daf yomi instance
Param | Type | Description |
---|---|---|
date | Date | HDate | number | Gregorian or Hebrew date |
Event wrapper around a DafYomi instance
Kind: global class
string
Array.<string>
Param | Type |
---|---|
date | HDate |
string
Returns Daf Yomi name including the 'Daf Yomi: ' prefix (e.g. "Daf Yomi: Pesachim 107").
Kind: instance method of DafYomiEvent
Param | Type | Description |
---|---|---|
[locale] | string | Optional locale name (defaults to active locale). |
Array.<string>
Kind: instance method of DafYomiEvent
Event wrapper around a Mishna Yomi instance
Kind: global class
string
string
Array.<string>
Param | Type |
---|---|
date | HDate |
mishnaYomi | Array.<MishnaYomi> |
string
Returns Mishna Yomi name (e.g. "Bava Metzia 10:5-6" or "Berakhot 9:5-Peah 1:1").
Kind: instance method of MishnaYomiEvent
Param | Type | Description |
---|---|---|
[locale] | string | Optional locale name (defaults to active locale). |
string
Returns a link to sefaria.org
Kind: instance method of MishnaYomiEvent
Array.<string>
Kind: instance method of MishnaYomiEvent
A program of daily learning in which participants study two Mishnahs each day in order to finish the entire Mishnah in ~6 years.
Kind: global class
Initializes a Mishna Yomi instance
Array.<MishnaYomi>
Kind: instance property of MishnaYomiIndex
Array.<MishnaYomi>
Looks up a Mishna Yomi
Kind: instance method of MishnaYomiIndex
Param | Type | Description |
---|---|---|
date | Date | HDate | number | Gregorian date |
Event wrapper around a Nach Yomi instance
Kind: global class
string
string
Array.<string>
Param | Type |
---|---|
date | HDate |
nachYomi | NachYomi |
string
Returns name of tractate and page (e.g. "Beitzah 21").
Kind: instance method of NachYomiEvent
Param | Type | Description |
---|---|---|
[locale] | string | Optional locale name (defaults to active locale). |
string
Returns a link to sefaria.org
Kind: instance method of NachYomiEvent
Array.<string>
Kind: instance method of NachYomiEvent
A daily regimen of learning the books of Nevi'im (Prophets) and Ketuvim (Writings).
Kind: global class
Initializes a Nach Yomi instance
NachYomi
Looks up a Mishna Yomi
Kind: instance method of NachYomiIndex
Param | Type | Description |
---|---|---|
date | Date | HDate | number | Gregorian date |
Event wrapper around a Yerushalmi Yomi result
Kind: global class
string
string
string
Array.<string>
Param | Type |
---|---|
date | HDate |
daf | any |
string
Returns name of tractate and page (e.g. "Yerushalmi Beitzah 21").
Kind: instance method of YerushalmiYomiEvent
Param | Type | Description |
---|---|---|
[locale] | string | Optional locale name (defaults to active locale). |
string
Returns name of tractate and page (e.g. "Beitzah 21").
Kind: instance method of YerushalmiYomiEvent
Param | Type | Description |
---|---|---|
[locale] | string | Optional locale name (defaults to active locale). |
string
Returns a link to sefaria.org
Kind: instance method of YerushalmiYomiEvent
Array.<string>
Kind: instance method of YerushalmiYomiEvent
Event wrapper around a Chofetz Chaim instance
Kind: global class
string
string
Array.<string>
Param | Type |
---|---|
date | HDate |
reading | any |
string
Returns name of reading
Kind: instance method of ChofetzChaimEvent
Param | Type | Description |
---|---|---|
[locale] | string | Optional locale name (defaults to active locale). |
string
Returns a link to sefaria.org e.g. https://www.sefaria.org/Chofetz_Chaim%2C_Part_One%2C_The_Prohibition_Against_Lashon_Hara%2C_Principle_7.7
Kind: instance method of ChofetzChaimEvent
Array.<string>
Kind: instance method of ChofetzChaimEvent
Event wrapper around a Daily Rambam instance
Kind: global class
string
string
Array.<string>
Param | Type |
---|---|
date | HDate |
reading | any |
string
Returns name of reading
Kind: instance method of DailyRambamEvent
Param | Type | Description |
---|---|---|
[locale] | string | Optional locale name (defaults to active locale). |
string
Returns a link to sefaria.org
Kind: instance method of DailyRambamEvent
Array.<string>
Kind: instance method of DailyRambamEvent
Event wrapper around a Sefer Shemirat HaLashon instance
Kind: global class
string
string
Array.<string>
Param | Type |
---|---|
date | HDate |
reading | any |
string
Returns name of reading
Kind: instance method of ShemiratHaLashonEvent
Param | Type | Description |
---|---|---|
[locale] | string | Optional locale name (defaults to active locale). |
string
Returns a link to sefaria.org e.g. https://www.sefaria.org/Shemirat_HaLashon%2C_Book_I%2C_The_Gate_of_Torah.4.2?lang=b
Kind: instance method of ShemiratHaLashonEvent
Array.<string>
Kind: instance method of ShemiratHaLashonEvent
Event wrapper around a daily Psalms / Tehillim
Kind: global class
string
string
Array.<string>
Param | Type |
---|---|
date | HDate |
reading | Array.<number> | Array.<string> |
string
Returns name of reading
Kind: instance method of PsalmsEvent
Param | Type | Description |
---|---|---|
[locale] | string | Optional locale name (defaults to active locale). |
string
Returns a link to sefaria.org e.g. https://www.sefaria.org/Psalms.1-9?lang=b
Kind: instance method of PsalmsEvent
Array.<string>
Kind: instance method of PsalmsEvent
Event wrapper around a daily weekly
Kind: global class
Array.<string>
Param | Type |
---|---|
date | HDate |
daf | DafPage |
Array.<string>
Kind: instance method of DafWeeklyEvent
Returns the Daf Yomi for given date
Kind: global class
Initializes a daf yomi instance
Param | Type |
---|---|
name | string |
blatt | number |
string
Formats (with translation) the dafyomi result as a string like "Pesachim 34"
Kind: instance method of TanakhYomi
Param | Type | Description |
---|---|---|
[locale] | string | Optional locale name (defaults to active locale). |
Event wrapper around a tanakhYomi
Kind: global class
string
Array.<string>
Param | Type |
---|---|
date | HDate |
daf | TanakhYomi |
string
Returns a link to sefaria.org or dafyomi.org
Kind: instance method of TanakhYomiEvent
Array.<string>
Kind: instance method of TanakhYomiEvent
Yerushalmi Yomi configuration for Vilna Edition
Kind: global constant
Read only: true
Yerushalmi Yomi configuration for Schottenstein Edition
Kind: global constant
Read only: true
any
Using the Vilna edition, the Yerushalmi Daf Yomi program takes
~4.25 years or 51 months.
Unlike the Daf Yomi Bavli cycle, this Yerushalmi cycle skips both
Yom Kippur and Tisha B'Av (returning null
).
The page numbers are according to the Vilna
Edition which is used since 1900.
The Schottenstein edition uses different page numbers and takes ~6 years to complete.
Throws an exception if the date is before Daf Yomi Yerushalmi cycle began (2 February 1980 for Vilna, 14 November 2022 for Schottenstein).
Kind: global function
Param | Type | Description |
---|---|---|
date | HDate | Date | number | Hebrew or Gregorian date |
config | any | either vilna or schottenstein |
any
Looks up Chofetz Chaim Calendar for date
Kind: global function
Param | Type |
---|---|
hdate | HDate |
any
Calculates Daily Rambam (Mishneh Torah) for 1 chapter a day cycle.
Kind: global function
Param | Type | Description |
---|---|---|
date | HDate | Date | number | Hebrew or Gregorian date |
any
Looks up Sefer Shemirat HaLashon Calendar for date
Kind: global function
Param | Type |
---|---|
hdate | HDate |
any
Calculates Daily Psalms (Tehillim) for 30-day cycle.
Kind: global function
Param | Type | Description |
---|---|---|
date | HDate | Date | number | Hebrew or Gregorian date |
DafPage
Daf-a-Week
Kind: global function
Param | Type | Description |
---|---|---|
date | HDate | Date | number | Hebrew or Gregorian date |
TanakhYomi
Calculates Tanakh Yomi.
Kind: global function
Param | Type | Description |
---|---|---|
date | HDate | Date | number | Hebrew or Gregorian date |
Object
Describes a mishna to be read
Kind: global typedef
Properties
Name | Type | Description |
---|---|---|
k | string | tractate name in Sephardic transliteration (e.g. "Berakhot", "Moed Katan") |
v | string | verse (e.g. "2:1") |
Object
Describes a chapter to be read
Kind: global typedef
Properties
Name | Type | Description |
---|---|---|
k | string | book name in Sephardic transliteration (e.g. "Berakhot", "Moed Katan") |
v | number | chapter (e.g. "2:1") |
FAQs
Daily learning schedules: Daf Yomi, Mishna Yomi, etc
We found that @hebcal/learning 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.
Research
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
Security News
Socket CEO Feross Aboukhadijeh joins a16z partners to discuss how modern, sophisticated supply chain attacks require AI-driven defenses and explore the challenges and solutions in leveraging AI for threat detection early in the development life cycle.
Security News
NIST's new AI Risk Management Framework aims to enhance the security and reliability of generative AI systems and address the unique challenges of malicious AI exploits.