clone-date 1.0.14 → 1.0.15

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2015-25 Ionică Bizău <bizauionica@gmail.com> (https://ionicabizau.net)
3
+ Copyright (c) 2015-26 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,52 +1,13 @@
1
1
  <!-- Please do not edit this file. Edit the `blah` field in the `package.json` instead. If in doubt, open an issue. -->
2
2
 
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
-
13
-
14
-
15
-
16
-
17
-
18
-
19
-
20
3
  # clone-date
21
4
 
22
5
  [![Support me on Patreon][badge_patreon]][patreon] [![Buy me a book][badge_amazon]][amazon] [![PayPal][badge_paypal_donate]][paypal-donations] [![Ask me anything](https://img.shields.io/badge/ask%20me-anything-1abc9c.svg)](https://github.com/IonicaBizau/ama) [![Version](https://img.shields.io/npm/v/clone-date.svg)](https://www.npmjs.com/package/clone-date) [![Downloads](https://img.shields.io/npm/dt/clone-date.svg)](https://www.npmjs.com/package/clone-date) [![Get help on Codementor](https://cdn.codementor.io/badges/get_help_github.svg)](https://www.codementor.io/@johnnyb?utm_source=github&utm_medium=button&utm_term=johnnyb&utm_campaign=github)
23
6
 
24
7
  <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
8
 
26
-
27
-
28
-
29
-
30
-
31
-
32
9
  > Clone date objects.
33
10
 
34
-
35
-
36
-
37
-
38
-
39
-
40
-
41
-
42
-
43
-
44
-
45
-
46
-
47
-
48
-
49
-
50
11
  ## :cloud: Installation
51
12
 
52
13
  ```sh
@@ -57,22 +18,8 @@ npm install --save clone-date
57
18
  yarn add clone-date
58
19
  ```
59
20
 
60
-
61
-
62
-
63
-
64
-
65
-
66
-
67
-
68
-
69
-
70
-
71
-
72
21
  ## :clipboard: Example
73
22
 
74
-
75
-
76
23
  ```js
77
24
  const cloneDate = require("clone-date");
78
25
 
@@ -91,120 +38,49 @@ console.log(c === d);
91
38
  // => false
92
39
  ```
93
40
 
94
-
95
-
96
-
97
-
98
-
99
-
100
-
101
-
102
-
103
-
104
-
105
- ## :question: Get Help
106
-
107
- There are few ways to get help:
108
-
109
-
110
-
111
- 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.
112
- 2. For bug reports and feature requests, open issues. :bug:
113
- 3. For direct and quick help, you can [use Codementor](https://www.codementor.io/johnnyb). :rocket:
114
-
115
-
116
-
117
-
118
-
119
-
120
-
121
41
  ## :memo: Documentation
122
42
 
123
-
124
43
  ### `cloneDate(date)`
125
44
  Clones a date object.
126
45
 
127
46
  #### Params
128
-
129
47
  - **Date** `date`: The date object to clone.
130
48
 
131
49
  #### Return
132
50
  - **Date** The cloned date object.
133
51
 
52
+ ## :question: Get Help
134
53
 
54
+ There are a few ways to get help:
135
55
 
56
+ 1. Please [post questions on Stack Overflow](https://stackoverflow.com/questions/ask). You can open issues with questions, as long as you add a link to your Stack Overflow question.
57
+ 2. For bug reports and feature requests, open issues. :bug:
58
+ 3. For direct and quick help, you can [use Codementor](https://www.codementor.io/johnnyb). :rocket:
136
59
 
60
+ ## :yum: How to Contribute
137
61
 
138
-
139
-
140
-
141
-
142
-
143
-
144
-
145
-
146
-
147
- ## :yum: How to contribute
148
62
  Have an idea? Found a bug? See [how to contribute][contributing].
149
63
 
64
+ ## :sparkling_heart: Support My Projects
150
65
 
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:
66
+ I open-source almost everything I can, and I try to reply to everyone needing help using these projects. Obviously, this takes time. You can integrate and use these projects in your applications *for free*! You can even change the source code and redistribute it (even resell it).
156
67
 
68
+ However, if you get some profit from this or just want to encourage me to continue creating stuff, there are a few ways you can do it:
157
69
 
158
70
  - 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:
71
+ - [![Buy me a book][badge_amazon]][amazon]—I love books! I will remember you for years if you buy me one. :grin: :book:
160
72
  - [![PayPal][badge_paypal]][paypal-donations]—You can make one-time donations via PayPal. I'll probably buy a ~~coffee~~ tea. :tea:
161
73
  - [![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
- ![](https://i.imgur.com/z6OQI95.png)
74
+ - **Bitcoin**—You can send me bitcoins at this address (or by scanning the code below): `1P9BRsmazNQcuyTxEqveUsnf5CERdq35V6`
165
75
 
76
+ ![Bitcoin QR code](https://i.imgur.com/z6OQI95.png)
166
77
 
167
78
  Thanks! :heart:
168
79
 
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
- - `time-picker`
188
-
189
-
190
-
191
-
192
-
193
-
194
-
195
-
196
-
197
-
198
-
199
80
  ## :scroll: License
200
81
 
201
82
  [MIT][license] © [Ionică Bizău][website]
202
83
 
203
-
204
-
205
-
206
-
207
-
208
84
  [license]: /LICENSE
209
85
  [website]: https://ionicabizau.net
210
86
  [contributing]: /CONTRIBUTING.md
@@ -214,5 +90,5 @@ If you are using this library in one of your projects, add it in this list. :spa
214
90
  [badge_paypal]: https://ionicabizau.github.io/badges/paypal.svg
215
91
  [badge_paypal_donate]: https://ionicabizau.github.io/badges/paypal_donate.svg
216
92
  [patreon]: https://www.patreon.com/ionicabizau
217
- [amazon]: http://amzn.eu/hRo9sIZ
93
+ [amazon]: https://amzn.eu/hRo9sIZ
218
94
  [paypal-donations]: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RVXDDLKKLQRJW
package/lib/index.js CHANGED
@@ -1,5 +1,3 @@
1
- "use strict";
2
-
3
1
  /**
4
2
  * cloneDate
5
3
  * Clones a date object.
@@ -10,7 +8,7 @@
10
8
  * @return {Date} The cloned date object.
11
9
  */
12
10
  module.exports = function cloneDate(date) {
13
- var c = new Date();
14
- c.setTime(date.getTime());
15
- return c;
16
- };
11
+ var c = new Date();
12
+ c.setTime(date.getTime());
13
+ return c;
14
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clone-date",
3
- "version": "1.0.14",
3
+ "version": "1.0.15",
4
4
  "description": "Clone date objects.",
5
5
  "main": "lib/index.js",
6
6
  "directories": {
@@ -36,7 +36,6 @@
36
36
  "cli.js",
37
37
  "index.js",
38
38
  "index.d.ts",
39
- "package-lock.json",
40
39
  "bloggify.js",
41
40
  "bloggify.json",
42
41
  "bloggify/"