Skip to content

Commit 350a93d

Browse files
committed
Add Chofetz Chaim daily calendar
1 parent 58101fc commit 350a93d

6 files changed

+578
-2
lines changed

README.md

+77
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Supports several learning schedules
1111
* Yerushalmi Yomi (Jerusalem Talmud)
1212
* Vilna edition - `yerushalmi-vilna`
1313
* Schottenstein edition - `yerushalmi-schottenstei`
14+
* Chofetz Chaim - `chofetzChaim`
1415

1516
## Installation
1617
```bash
@@ -43,6 +44,9 @@ and Ketuvim (Writings).</p>
4344
<dt><a href="#YerushalmiYomiEvent">YerushalmiYomiEvent</a></dt>
4445
<dd><p>Event wrapper around a Yerushalmi Yomi result</p>
4546
</dd>
47+
<dt><a href="#ChofetzChaimEvent">ChofetzChaimEvent</a></dt>
48+
<dd><p>Event wrapper around a Chofetz Chaim instance</p>
49+
</dd>
4650
</dl>
4751

4852
## Constants
@@ -72,6 +76,9 @@ Edition which is used since 1900.</p>
7276
cycle began (2 February 1980 for Vilna,
7377
14 November 2022 for Schottenstein).</p>
7478
</dd>
79+
<dt><a href="#chofetzChaim">chofetzChaim(hdate)</a> ⇒ <code>any</code></dt>
80+
<dd><p>Looks up Chofetz Chaim Calendar for date</p>
81+
</dd>
7582
</dl>
7683

7784
## Typedefs
@@ -139,6 +146,7 @@ Event wrapper around a DafYomi instance
139146
* [.render([locale])](#DafYomiEvent+render) ⇒ <code>string</code>
140147
* [.renderBrief([locale])](#DafYomiEvent+renderBrief) ⇒ <code>string</code>
141148
* [.url()](#DafYomiEvent+url) ⇒ <code>string</code>
149+
* [.getCategories()](#DafYomiEvent+getCategories) ⇒ <code>Array.&lt;string&gt;</code>
142150

143151
<a name="new_DafYomiEvent_new"></a>
144152

@@ -175,6 +183,10 @@ Returns Daf Yomi name without the 'Daf Yomi: ' prefix (e.g. "Pesachim 107").
175183
### dafYomiEvent.url() ⇒ <code>string</code>
176184
Returns a link to sefaria.org or dafyomi.org
177185

186+
**Kind**: instance method of [<code>DafYomiEvent</code>](#DafYomiEvent)
187+
<a name="DafYomiEvent+getCategories"></a>
188+
189+
### dafYomiEvent.getCategories() ⇒ <code>Array.&lt;string&gt;</code>
178190
**Kind**: instance method of [<code>DafYomiEvent</code>](#DafYomiEvent)
179191
<a name="MishnaYomiEvent"></a>
180192

@@ -187,6 +199,7 @@ Event wrapper around a Mishna Yomi instance
187199
* [new MishnaYomiEvent(date, mishnaYomi)](#new_MishnaYomiEvent_new)
188200
* [.render([locale])](#MishnaYomiEvent+render) ⇒ <code>string</code>
189201
* [.url()](#MishnaYomiEvent+url) ⇒ <code>string</code>
202+
* [.getCategories()](#MishnaYomiEvent+getCategories) ⇒ <code>Array.&lt;string&gt;</code>
190203

191204
<a name="new_MishnaYomiEvent_new"></a>
192205

@@ -213,6 +226,10 @@ Returns Mishna Yomi name (e.g. "Bava Metzia 10:5-6" or "Berakhot 9:5-Peah 1:1").
213226
### mishnaYomiEvent.url() ⇒ <code>string</code>
214227
Returns a link to sefaria.org
215228

229+
**Kind**: instance method of [<code>MishnaYomiEvent</code>](#MishnaYomiEvent)
230+
<a name="MishnaYomiEvent+getCategories"></a>
231+
232+
### mishnaYomiEvent.getCategories() ⇒ <code>Array.&lt;string&gt;</code>
216233
**Kind**: instance method of [<code>MishnaYomiEvent</code>](#MishnaYomiEvent)
217234
<a name="MishnaYomiIndex"></a>
218235

@@ -258,6 +275,7 @@ Event wrapper around a Nach Yomi instance
258275
* [new NachYomiEvent(date, nachYomi)](#new_NachYomiEvent_new)
259276
* [.render([locale])](#NachYomiEvent+render) ⇒ <code>string</code>
260277
* [.url()](#NachYomiEvent+url) ⇒ <code>string</code>
278+
* [.getCategories()](#NachYomiEvent+getCategories) ⇒ <code>Array.&lt;string&gt;</code>
261279

262280
<a name="new_NachYomiEvent_new"></a>
263281

@@ -284,6 +302,10 @@ Returns name of tractate and page (e.g. "Beitzah 21").
284302
### nachYomiEvent.url() ⇒ <code>string</code>
285303
Returns a link to sefaria.org
286304

305+
**Kind**: instance method of [<code>NachYomiEvent</code>](#NachYomiEvent)
306+
<a name="NachYomiEvent+getCategories"></a>
307+
308+
### nachYomiEvent.getCategories() ⇒ <code>Array.&lt;string&gt;</code>
287309
**Kind**: instance method of [<code>NachYomiEvent</code>](#NachYomiEvent)
288310
<a name="NachYomiIndex"></a>
289311

@@ -325,6 +347,7 @@ Event wrapper around a Yerushalmi Yomi result
325347
* [.render([locale])](#YerushalmiYomiEvent+render) ⇒ <code>string</code>
326348
* [.renderBrief([locale])](#YerushalmiYomiEvent+renderBrief) ⇒ <code>string</code>
327349
* [.url()](#YerushalmiYomiEvent+url) ⇒ <code>string</code>
350+
* [.getCategories()](#YerushalmiYomiEvent+getCategories) ⇒ <code>Array.&lt;string&gt;</code>
328351

329352
<a name="new_YerushalmiYomiEvent_new"></a>
330353

@@ -363,6 +386,49 @@ Returns name of tractate and page (e.g. "Beitzah 21").
363386
Returns a link to sefaria.org
364387

365388
**Kind**: instance method of [<code>YerushalmiYomiEvent</code>](#YerushalmiYomiEvent)
389+
<a name="YerushalmiYomiEvent+getCategories"></a>
390+
391+
### yerushalmiYomiEvent.getCategories() ⇒ <code>Array.&lt;string&gt;</code>
392+
**Kind**: instance method of [<code>YerushalmiYomiEvent</code>](#YerushalmiYomiEvent)
393+
<a name="ChofetzChaimEvent"></a>
394+
395+
## ChofetzChaimEvent
396+
Event wrapper around a Chofetz Chaim instance
397+
398+
**Kind**: global class
399+
400+
* [ChofetzChaimEvent](#ChofetzChaimEvent)
401+
* [new ChofetzChaimEvent(date, reading)](#new_ChofetzChaimEvent_new)
402+
* [.render([locale])](#ChofetzChaimEvent+render) ⇒ <code>string</code>
403+
* [.url()](#ChofetzChaimEvent+url) ⇒ <code>string</code>
404+
405+
<a name="new_ChofetzChaimEvent_new"></a>
406+
407+
### new ChofetzChaimEvent(date, reading)
408+
409+
| Param | Type |
410+
| --- | --- |
411+
| date | <code>HDate</code> |
412+
| reading | <code>any</code> |
413+
414+
<a name="ChofetzChaimEvent+render"></a>
415+
416+
### chofetzChaimEvent.render([locale]) ⇒ <code>string</code>
417+
Returns name of reading
418+
419+
**Kind**: instance method of [<code>ChofetzChaimEvent</code>](#ChofetzChaimEvent)
420+
421+
| Param | Type | Description |
422+
| --- | --- | --- |
423+
| [locale] | <code>string</code> | Optional locale name (defaults to active locale). |
424+
425+
<a name="ChofetzChaimEvent+url"></a>
426+
427+
### chofetzChaimEvent.url() ⇒ <code>string</code>
428+
Returns a link to sefaria.org
429+
e.g. https://www.sefaria.org/Chofetz_Chaim%2C_Part_One%2C_The_Prohibition_Against_Lashon_Hara%2C_Principle_7.7
430+
431+
**Kind**: instance method of [<code>ChofetzChaimEvent</code>](#ChofetzChaimEvent)
366432
<a name="vilna"></a>
367433

368434
## vilna
@@ -401,6 +467,17 @@ cycle began (2 February 1980 for Vilna,
401467
| date | <code>HDate</code> \| <code>Date</code> \| <code>number</code> | Hebrew or Gregorian date |
402468
| config | <code>any</code> | either vilna or schottenstein |
403469

470+
<a name="chofetzChaim"></a>
471+
472+
## chofetzChaim(hdate) ⇒ <code>any</code>
473+
Looks up Chofetz Chaim Calendar for date
474+
475+
**Kind**: global function
476+
477+
| Param | Type |
478+
| --- | --- |
479+
| hdate | <code>HDate</code> |
480+
404481
<a name="MishnaYomi"></a>
405482

406483
## MishnaYomi : <code>Object</code>

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@hebcal/learning",
3-
"version": "1.0.0",
4-
"description": "Daily learning schedules",
3+
"version": "1.1.0",
4+
"description": "Daily learning schedules: Daf Yomi, Mishna Yomi, etc",
55
"main": "dist/index.js",
66
"module": "dist/index.mjs",
77
"exports": {

0 commit comments

Comments
 (0)