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.
Files changed (2) hide show
  1. package/README.md +10 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,6 +1,11 @@
1
- # Jewish Date · [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/Shmulik-Kravitz/jewish-date/blob/master/LICENSE) ![main workflow](https://github.com/Shmulik-Kravitz/jewish-date/actions/workflows/main.yml/badge.svg) ![Code Coverage](https://img.shields.io/badge/Code%20Coverage-100%25-success?style=flat) [![npm version](https://img.shields.io/npm/v/jewish-date.svg?style=flat)](https://www.npmjs.com/package/jewish-date)
1
+ # Jewish Date · [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/Shmulik-Kravitz/jewish-date/blob/master/LICENSE) ![main workflow](https://github.com/Shmulik-Kravitz/jewish-date/actions/workflows/main.yml/badge.svg) ![Code Coverage](https://img.shields.io/badge/Code%20Coverage-100%25-success?style=flat) [![npm version](https://img.shields.io/npm/v/jewish-date.svg?style=flat)](https://www.npmjs.com/package/jewish-date) ![npm bundle size](https://img.shields.io/bundlephobia/minzip/jewish-date?style=plastic)
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jewish-date",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "lib/index.d.ts",