clone-date 1.0.13 → 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-20 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
- [![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)
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,117 +38,49 @@ console.log(c === d);
91
38
  // => false
92
39
  ```
93
40
 
94
-
95
-
96
-
97
-
98
-
99
-
100
-
101
-
102
-
103
-
104
- ## :question: Get Help
105
-
106
- There are few ways to get help:
107
-
108
-
109
-
110
- 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.
111
- 2. For bug reports and feature requests, open issues. :bug:
112
- 3. For direct and quick help, you can [use Codementor](https://www.codementor.io/johnnyb). :rocket:
113
-
114
-
115
-
116
-
117
-
118
41
  ## :memo: Documentation
119
42
 
120
-
121
43
  ### `cloneDate(date)`
122
44
  Clones a date object.
123
45
 
124
46
  #### Params
125
-
126
47
  - **Date** `date`: The date object to clone.
127
48
 
128
49
  #### Return
129
50
  - **Date** The cloned date object.
130
51
 
52
+ ## :question: Get Help
131
53
 
54
+ There are a few ways to get help:
132
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:
133
59
 
60
+ ## :yum: How to Contribute
134
61
 
135
-
136
-
137
-
138
-
139
-
140
-
141
-
142
-
143
-
144
- ## :yum: How to contribute
145
62
  Have an idea? Found a bug? See [how to contribute][contributing].
146
63
 
64
+ ## :sparkling_heart: Support My Projects
147
65
 
148
- ## :sparkling_heart: Support my projects
149
- I open-source almost everything I can, and I try to reply to everyone needing help using these projects. Obviously,
150
- 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).
151
-
152
- 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).
153
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:
154
69
 
155
70
  - Starring and sharing the projects you like :rocket:
156
- - [![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:
157
72
  - [![PayPal][badge_paypal]][paypal-donations]—You can make one-time donations via PayPal. I'll probably buy a ~~coffee~~ tea. :tea:
158
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).
159
- - **Bitcoin**—You can send me bitcoins at this address (or scanning the code below): `1P9BRsmazNQcuyTxEqveUsnf5CERdq35V6`
160
-
161
- ![](https://i.imgur.com/z6OQI95.png)
74
+ - **Bitcoin**—You can send me bitcoins at this address (or by scanning the code below): `1P9BRsmazNQcuyTxEqveUsnf5CERdq35V6`
162
75
 
76
+ ![Bitcoin QR code](https://i.imgur.com/z6OQI95.png)
163
77
 
164
78
  Thanks! :heart:
165
79
 
166
-
167
-
168
-
169
-
170
-
171
-
172
-
173
-
174
-
175
-
176
-
177
-
178
-
179
-
180
-
181
- ## :dizzy: Where is this library used?
182
- If you are using this library in one of your projects, add it in this list. :sparkles:
183
-
184
- - `time-picker`
185
-
186
-
187
-
188
-
189
-
190
-
191
-
192
-
193
-
194
-
195
-
196
80
  ## :scroll: License
197
81
 
198
82
  [MIT][license] © [Ionică Bizău][website]
199
83
 
200
-
201
-
202
-
203
-
204
-
205
84
  [license]: /LICENSE
206
85
  [website]: https://ionicabizau.net
207
86
  [contributing]: /CONTRIBUTING.md
@@ -211,5 +90,5 @@ If you are using this library in one of your projects, add it in this list. :spa
211
90
  [badge_paypal]: https://ionicabizau.github.io/badges/paypal.svg
212
91
  [badge_paypal_donate]: https://ionicabizau.github.io/badges/paypal_donate.svg
213
92
  [patreon]: https://www.patreon.com/ionicabizau
214
- [amazon]: http://amzn.eu/hRo9sIZ
93
+ [amazon]: https://amzn.eu/hRo9sIZ
215
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.13",
3
+ "version": "1.0.15",
4
4
  "description": "Clone date objects.",
5
5
  "main": "lib/index.js",
6
6
  "directories": {
@@ -35,8 +35,9 @@
35
35
  "menu/",
36
36
  "cli.js",
37
37
  "index.js",
38
+ "index.d.ts",
38
39
  "bloggify.js",
39
40
  "bloggify.json",
40
41
  "bloggify/"
41
42
  ]
42
- }
43
+ }