hebrew-date 1.0.5 → 1.0.7
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/LICENSE +1 -1
- package/README.md +127 -11
- package/package.json +4 -2
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2016-
|
|
3
|
+
Copyright (c) 2016-25 Ionică Bizău <bizauionica@gmail.com> (https://ionicabizau.net)
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
<!-- Please do not edit this file. Edit the `blah` field in the `package.json` instead. If in doubt, open an issue. -->
|
|
2
|
+
|
|
1
3
|
|
|
2
4
|
|
|
3
5
|
|
|
@@ -17,15 +19,42 @@
|
|
|
17
19
|
|
|
18
20
|
# hebrew-date
|
|
19
21
|
|
|
20
|
-
|
|
22
|
+
[![Support me on Patreon][badge_patreon]][patreon] [![Buy me a book][badge_amazon]][amazon] [![PayPal][badge_paypal_donate]][paypal-donations] [](https://github.com/IonicaBizau/ama) [](https://www.npmjs.com/package/hebrew-date) [](https://www.npmjs.com/package/hebrew-date) [](https://www.codementor.io/@johnnyb?utm_source=github&utm_medium=button&utm_term=johnnyb&utm_campaign=github)
|
|
23
|
+
|
|
24
|
+
<a href="https://www.buymeacoffee.com/H96WwChMy" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/yellow_img.png" alt="Buy Me A Coffee"></a>
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
> Convert the date objects into the Hebrew calendar correspondant.
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
21
46
|
|
|
22
47
|
|
|
23
48
|
|
|
24
49
|
|
|
25
|
-
## Installation
|
|
50
|
+
## :cloud: Installation
|
|
26
51
|
|
|
27
52
|
```sh
|
|
28
|
-
|
|
53
|
+
# Using npm
|
|
54
|
+
npm install --save hebrew-date
|
|
55
|
+
|
|
56
|
+
# Using yarn
|
|
57
|
+
yarn add hebrew-date
|
|
29
58
|
```
|
|
30
59
|
|
|
31
60
|
|
|
@@ -36,17 +65,16 @@ $ npm i hebrew-date
|
|
|
36
65
|
|
|
37
66
|
|
|
38
67
|
|
|
39
|
-
## Example
|
|
40
68
|
|
|
41
69
|
|
|
42
70
|
|
|
43
71
|
|
|
72
|
+
## :clipboard: Example
|
|
44
73
|
|
|
45
74
|
|
|
46
|
-
```js
|
|
47
|
-
"use strict";
|
|
48
75
|
|
|
49
|
-
|
|
76
|
+
```js
|
|
77
|
+
var hebrewDate = require("hebrew-date");
|
|
50
78
|
|
|
51
79
|
// When not providing a date object, the months are one-indexed
|
|
52
80
|
console.log(hebrewDate(2016, 10, 2));
|
|
@@ -62,16 +90,36 @@ console.log(hebrewDate(new Date(2016, october, 3)));
|
|
|
62
90
|
|
|
63
91
|
|
|
64
92
|
|
|
65
|
-
## Documentation
|
|
66
93
|
|
|
67
94
|
|
|
68
95
|
|
|
69
96
|
|
|
70
97
|
|
|
98
|
+
|
|
99
|
+
## :question: Get Help
|
|
100
|
+
|
|
101
|
+
There are few ways to get help:
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
1. Please [post questions on Stack Overflow](https://stackoverflow.com/questions/ask). You can open issues with questions, as long you add a link to your Stack Overflow question.
|
|
106
|
+
2. For bug reports and feature requests, open issues. :bug:
|
|
107
|
+
3. For direct and quick help, you can [use Codementor](https://www.codementor.io/johnnyb). :rocket:
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
## :memo: Documentation
|
|
116
|
+
|
|
117
|
+
|
|
71
118
|
### `hebrewDate(inputDate, inputMonth, inputDate)`
|
|
72
119
|
Convert the Gregorian dates into Hebrew calendar dates.
|
|
73
120
|
|
|
74
121
|
#### Params
|
|
122
|
+
|
|
75
123
|
- **Date|Number** `inputDate`: The date object (representing the Gregorian date) or the year.
|
|
76
124
|
- **Number** `inputMonth`: The Gregorian month (**one-indexed**, January being `1`!).
|
|
77
125
|
- **Number** `inputDate`: The Gregorian date.
|
|
@@ -88,15 +136,83 @@ Convert the Gregorian dates into Hebrew calendar dates.
|
|
|
88
136
|
|
|
89
137
|
|
|
90
138
|
|
|
91
|
-
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
## :yum: How to contribute
|
|
92
148
|
Have an idea? Found a bug? See [how to contribute][contributing].
|
|
93
149
|
|
|
94
150
|
|
|
151
|
+
## :sparkling_heart: Support my projects
|
|
152
|
+
I open-source almost everything I can, and I try to reply to everyone needing help using these projects. Obviously,
|
|
153
|
+
this takes time. You can integrate and use these projects in your applications *for free*! You can even change the source code and redistribute (even resell it).
|
|
154
|
+
|
|
155
|
+
However, if you get some profit from this or just want to encourage me to continue creating stuff, there are few ways you can do it:
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
- Starring and sharing the projects you like :rocket:
|
|
159
|
+
- [![Buy me a book][badge_amazon]][amazon]—I love books! I will remember you after years if you buy me one. :grin: :book:
|
|
160
|
+
- [![PayPal][badge_paypal]][paypal-donations]—You can make one-time donations via PayPal. I'll probably buy a ~~coffee~~ tea. :tea:
|
|
161
|
+
- [![Support me on Patreon][badge_patreon]][patreon]—Set up a recurring monthly donation and you will get interesting news about what I'm doing (things that I don't share with everyone).
|
|
162
|
+
- **Bitcoin**—You can send me bitcoins at this address (or scanning the code below): `1P9BRsmazNQcuyTxEqveUsnf5CERdq35V6`
|
|
163
|
+
|
|
164
|
+

|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
Thanks! :heart:
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
## :dizzy: Where is this library used?
|
|
185
|
+
If you are using this library in one of your projects, add it in this list. :sparkles:
|
|
186
|
+
|
|
187
|
+
- `afui-react`
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
## :scroll: License
|
|
200
|
+
|
|
201
|
+
[MIT][license] © [Ionică Bizău][website]
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
|
|
95
205
|
|
|
96
|
-
## License
|
|
97
|
-
See the [LICENSE][license] file.
|
|
98
206
|
|
|
99
207
|
|
|
100
208
|
[license]: /LICENSE
|
|
209
|
+
[website]: https://ionicabizau.net
|
|
101
210
|
[contributing]: /CONTRIBUTING.md
|
|
102
211
|
[docs]: /DOCUMENTATION.md
|
|
212
|
+
[badge_patreon]: https://ionicabizau.github.io/badges/patreon.svg
|
|
213
|
+
[badge_amazon]: https://ionicabizau.github.io/badges/amazon.svg
|
|
214
|
+
[badge_paypal]: https://ionicabizau.github.io/badges/paypal.svg
|
|
215
|
+
[badge_paypal_donate]: https://ionicabizau.github.io/badges/paypal_donate.svg
|
|
216
|
+
[patreon]: https://www.patreon.com/ionicabizau
|
|
217
|
+
[amazon]: http://amzn.eu/hRo9sIZ
|
|
218
|
+
[paypal-donations]: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RVXDDLKKLQRJW
|
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"correspondant"
|
|
13
13
|
],
|
|
14
14
|
"license": "MIT",
|
|
15
|
-
"version": "1.0.
|
|
15
|
+
"version": "1.0.7",
|
|
16
16
|
"main": "lib/index.js",
|
|
17
17
|
"scripts": {
|
|
18
18
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -29,6 +29,8 @@
|
|
|
29
29
|
"menu/",
|
|
30
30
|
"cli.js",
|
|
31
31
|
"index.js",
|
|
32
|
+
"index.d.ts",
|
|
33
|
+
"package-lock.json",
|
|
32
34
|
"bloggify.js",
|
|
33
35
|
"bloggify.json",
|
|
34
36
|
"bloggify/"
|
|
@@ -41,4 +43,4 @@
|
|
|
41
43
|
"url": "https://github.com/IonicaBizau/hebrew-date/issues"
|
|
42
44
|
},
|
|
43
45
|
"homepage": "https://github.com/IonicaBizau/hebrew-date#readme"
|
|
44
|
-
}
|
|
46
|
+
}
|