fwatcher 3.0.0 → 3.0.1

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
File without changes
package/README.md CHANGED
@@ -1,54 +1,15 @@
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
3
  [![fwatcher](http://i.imgur.com/vy4T9a6.png)](#)
11
4
 
12
-
13
-
14
-
15
-
16
-
17
-
18
-
19
-
20
-
21
-
22
5
  # fwatcher
23
6
 
24
7
  [![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/fwatcher.svg)](https://www.npmjs.com/package/fwatcher) [![Downloads](https://img.shields.io/npm/dt/fwatcher.svg)](https://www.npmjs.com/package/fwatcher) [![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)
25
8
 
26
9
  <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>
27
10
 
28
-
29
-
30
-
31
-
32
-
33
-
34
11
  > Watch files for changes.
35
12
 
36
-
37
-
38
-
39
-
40
-
41
-
42
-
43
-
44
-
45
-
46
-
47
-
48
-
49
-
50
-
51
-
52
13
  ## :cloud: Installation
53
14
 
54
15
  ```sh
@@ -59,22 +20,8 @@ npm install --save fwatcher
59
20
  yarn add fwatcher
60
21
  ```
61
22
 
62
-
63
-
64
-
65
-
66
-
67
-
68
-
69
-
70
-
71
-
72
-
73
-
74
23
  ## :clipboard: Example
75
24
 
76
-
77
-
78
25
  ```js
79
26
  import fileWatcher from "fwatcher";
80
27
 
@@ -92,24 +39,12 @@ new fileWatcher(`example/once.txt`, true, (err, ev, path) => {
92
39
  });
93
40
  ```
94
41
 
95
-
96
-
97
-
98
-
99
-
100
-
101
-
102
-
103
-
104
-
105
42
  ## :memo: Documentation
106
43
 
107
-
108
44
  ### `Watcher(path, handler)`
109
45
  Creates a new instance of the internal `Watcher`.
110
46
 
111
47
  #### Params
112
-
113
48
  - **string** `path`: The path to the file.
114
49
  - **Function** `handler`: A function called when the file changes.
115
50
 
@@ -120,7 +55,6 @@ Removes the listener.
120
55
  Creates a new file watcher.
121
56
 
122
57
  #### Params
123
-
124
58
  - **string** `path`: The path to the file.
125
59
  - **boolean|Options** `options`: A boolean value representing the `once` value or an object containing the following fields:
126
60
 
@@ -131,91 +65,38 @@ the evenit name and the third one is the file path.
131
65
  #### Return
132
66
  - **Watcher** The watcher instance.
133
67
 
134
-
135
-
136
-
137
-
138
-
139
-
140
-
141
-
142
68
  ## :question: Get Help
143
69
 
144
- There are few ways to get help:
70
+ There are a few ways to get help:
145
71
 
146
-
147
-
148
- 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.
72
+ 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.
149
73
  2. For bug reports and feature requests, open issues. :bug:
150
74
  3. For direct and quick help, you can [use Codementor](https://www.codementor.io/johnnyb). :rocket:
151
75
 
76
+ ## :yum: How to Contribute
152
77
 
153
-
154
-
155
-
156
-
157
-
158
-
159
-
160
-
161
-
162
-
163
-
164
-
165
- ## :yum: How to contribute
166
78
  Have an idea? Found a bug? See [how to contribute][contributing].
167
79
 
80
+ ## :sparkling_heart: Support My Projects
168
81
 
169
- ## :sparkling_heart: Support my projects
170
- I open-source almost everything I can, and I try to reply to everyone needing help using these projects. Obviously,
171
- 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).
172
-
173
- 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:
82
+ 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).
174
83
 
84
+ 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:
175
85
 
176
86
  - Starring and sharing the projects you like :rocket:
177
- - [![Buy me a book][badge_amazon]][amazon]—I love books! I will remember you after years if you buy me one. :grin: :book:
87
+ - [![Buy me a book][badge_amazon]][amazon]—I love books! I will remember you for years if you buy me one. :grin: :book:
178
88
  - [![PayPal][badge_paypal]][paypal-donations]—You can make one-time donations via PayPal. I'll probably buy a ~~coffee~~ tea. :tea:
179
89
  - [![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).
180
- - **Bitcoin**—You can send me bitcoins at this address (or scanning the code below): `1P9BRsmazNQcuyTxEqveUsnf5CERdq35V6`
181
-
182
- ![](https://i.imgur.com/z6OQI95.png)
90
+ - **Bitcoin**—You can send me bitcoins at this address (or by scanning the code below): `1P9BRsmazNQcuyTxEqveUsnf5CERdq35V6`
183
91
 
92
+ ![Bitcoin QR code](https://i.imgur.com/z6OQI95.png)
184
93
 
185
94
  Thanks! :heart:
186
95
 
187
-
188
-
189
-
190
-
191
-
192
-
193
-
194
-
195
-
196
-
197
-
198
-
199
-
200
-
201
-
202
-
203
-
204
-
205
-
206
-
207
-
208
-
209
-
210
96
  ## :scroll: License
211
97
 
212
98
  [MIT][license] © [Ionică Bizău][website]
213
99
 
214
-
215
-
216
-
217
-
218
-
219
100
  [license]: /LICENSE
220
101
  [website]: https://ionicabizau.net
221
102
  [contributing]: /CONTRIBUTING.md
@@ -225,5 +106,5 @@ Thanks! :heart:
225
106
  [badge_paypal]: https://ionicabizau.github.io/badges/paypal.svg
226
107
  [badge_paypal_donate]: https://ionicabizau.github.io/badges/paypal_donate.svg
227
108
  [patreon]: https://www.patreon.com/ionicabizau
228
- [amazon]: http://amzn.eu/hRo9sIZ
109
+ [amazon]: https://amzn.eu/hRo9sIZ
229
110
  [paypal-donations]: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RVXDDLKKLQRJW
package/lib/index.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fwatcher",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Watch files for changes.",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",
@@ -46,7 +46,6 @@
46
46
  "cli.js",
47
47
  "index.js",
48
48
  "index.d.ts",
49
- "package-lock.json",
50
49
  "bloggify.js",
51
50
  "bloggify.json",
52
51
  "bloggify/"