jewish-date 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
# Jewish Date · [](https://github.com/Shmulik-Kravitz/jewish-date/blob/master/LICENSE)   [](https://www.npmjs.com/package/jewish-date)
|
|
1
|
+
# Jewish Date · [](https://github.com/Shmulik-Kravitz/jewish-date/blob/master/LICENSE)   [](https://www.npmjs.com/package/jewish-date) 
|
|
2
|
+
|
|
3
|
+
## Jewish Date is a Hebrew date to Gregorian date and vice versa converter
|
|
4
|
+
|
|
5
|
+
* 🌐 Works in both Node.js and in the browser
|
|
6
|
+
* 📦 2kB mini library
|
|
7
|
+
|
|
2
8
|
|
|
3
|
-
Jewish Date is a Hebrew date to Gregorian date and vice verser converter.
|
|
4
9
|
|
|
5
10
|
## Installation
|
|
6
11
|
|
|
@@ -27,6 +32,9 @@ const date = new Date("2020-01-01");
|
|
|
27
32
|
const jewishDate = toJewishDate(date);
|
|
28
33
|
console.log(jewishDate); // { year: 5780, monthName: "Tevet", month: 4, day: 4 }
|
|
29
34
|
|
|
35
|
+
const jewishDateInEnglish = formatJewishDate(jewishDate);
|
|
36
|
+
console.log(jewishDateInEnglish); // 4 Tevet 5780
|
|
37
|
+
|
|
30
38
|
const jewishDateInHebrew = toHebrewJewishDate(jewishDate);
|
|
31
39
|
console.log(jewishDateInHebrew); // { day: "ד׳", monthName: "טבת", year: "התש״פ" }
|
|
32
40
|
|