filehound 2.0.0-beta.2 → 2.0.0

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 (212) hide show
  1. package/README.md +39 -11
  2. package/dist/arrays.d.ts +1 -0
  3. package/dist/arrays.js +4 -0
  4. package/dist/file.d.ts +108 -0
  5. package/dist/file.js +184 -0
  6. package/dist/filehound.d.ts +356 -0
  7. package/dist/filehound.js +498 -0
  8. package/dist/files.d.ts +4 -0
  9. package/dist/files.js +37 -0
  10. package/dist/filetype.d.ts +10 -0
  11. package/dist/filetype.js +9 -0
  12. package/dist/index.d.ts +5 -0
  13. package/dist/index.js +6 -0
  14. package/dist/matchers.d.ts +324 -0
  15. package/dist/matchers.js +419 -0
  16. package/dist/walker/async.d.ts +4 -0
  17. package/dist/walker/async.js +237 -0
  18. package/dist/walker/heap.d.ts +7 -0
  19. package/dist/walker/heap.js +49 -0
  20. package/dist/walker/sync.d.ts +4 -0
  21. package/dist/walker/sync.js +66 -0
  22. package/dist/walker/walk.d.ts +33 -0
  23. package/dist/walker/walk.js +80 -0
  24. package/package.json +45 -48
  25. package/.github/stale.yml +0 -42
  26. package/.travis.yml +0 -8
  27. package/.vscode/launch.json +0 -21
  28. package/.vscode/settings.json +0 -3
  29. package/CONTRIBUTING.md +0 -8
  30. package/_config.yml +0 -1
  31. package/coverage/coverage.raw.json +0 -1
  32. package/coverage/lcov-report/arrays.ts.html +0 -98
  33. package/coverage/lcov-report/base.css +0 -212
  34. package/coverage/lcov-report/filehound.ts.html +0 -2078
  35. package/coverage/lcov-report/files.ts.html +0 -260
  36. package/coverage/lcov-report/functions.ts.html +0 -122
  37. package/coverage/lcov-report/index.html +0 -132
  38. package/coverage/lcov-report/prettify.css +0 -1
  39. package/coverage/lcov-report/prettify.js +0 -1
  40. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  41. package/coverage/lcov-report/sorter.js +0 -158
  42. package/coverage/lcov.info +0 -378
  43. package/dist/src/arrays.js +0 -15
  44. package/dist/src/arrays.js.map +0 -1
  45. package/dist/src/asyncWalker.js +0 -59
  46. package/dist/src/asyncWalker.js.map +0 -1
  47. package/dist/src/bind.js +0 -15
  48. package/dist/src/bind.js.map +0 -1
  49. package/dist/src/filehound.js +0 -597
  50. package/dist/src/filehound.js.map +0 -1
  51. package/dist/src/files.js +0 -60
  52. package/dist/src/files.js.map +0 -1
  53. package/dist/src/matcher.js +0 -51
  54. package/dist/src/matcher.js.map +0 -1
  55. package/dist/src/syncWalker.js +0 -47
  56. package/dist/src/syncWalker.js.map +0 -1
  57. package/dist/src/walkAsync.js +0 -33
  58. package/dist/src/walkAsync.js.map +0 -1
  59. package/dist/src/walkSync.js +0 -21
  60. package/dist/src/walkSync.js.map +0 -1
  61. package/dist/src/walker/walk.js +0 -68
  62. package/dist/src/walker/walk.js.map +0 -1
  63. package/dist/src/walker/walkAsync.js +0 -33
  64. package/dist/src/walker/walkAsync.js.map +0 -1
  65. package/dist/src/walker/walkSync.js +0 -21
  66. package/dist/src/walker/walkSync.js.map +0 -1
  67. package/dist/test/filehound.js +0 -872
  68. package/dist/test/filehound.js.map +0 -1
  69. package/dist/test/files.js +0 -29
  70. package/dist/test/files.js.map +0 -1
  71. package/docconfig/jsdoc.json +0 -26
  72. package/docconfig/template/LICENSE +0 -61
  73. package/docconfig/template/README.md +0 -86
  74. package/docconfig/template/package.json +0 -22
  75. package/docconfig/template/publish.js +0 -676
  76. package/docconfig/template/static/fonts/OpenSans-Bold-webfont.eot +0 -0
  77. package/docconfig/template/static/fonts/OpenSans-Bold-webfont.svg +0 -1830
  78. package/docconfig/template/static/fonts/OpenSans-Bold-webfont.woff +0 -0
  79. package/docconfig/template/static/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
  80. package/docconfig/template/static/fonts/OpenSans-BoldItalic-webfont.svg +0 -1830
  81. package/docconfig/template/static/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
  82. package/docconfig/template/static/fonts/OpenSans-Italic-webfont.eot +0 -0
  83. package/docconfig/template/static/fonts/OpenSans-Italic-webfont.svg +0 -1830
  84. package/docconfig/template/static/fonts/OpenSans-Italic-webfont.woff +0 -0
  85. package/docconfig/template/static/fonts/OpenSans-Light-webfont.eot +0 -0
  86. package/docconfig/template/static/fonts/OpenSans-Light-webfont.svg +0 -1831
  87. package/docconfig/template/static/fonts/OpenSans-Light-webfont.woff +0 -0
  88. package/docconfig/template/static/fonts/OpenSans-LightItalic-webfont.eot +0 -0
  89. package/docconfig/template/static/fonts/OpenSans-LightItalic-webfont.svg +0 -1835
  90. package/docconfig/template/static/fonts/OpenSans-LightItalic-webfont.woff +0 -0
  91. package/docconfig/template/static/fonts/OpenSans-Regular-webfont.eot +0 -0
  92. package/docconfig/template/static/fonts/OpenSans-Regular-webfont.svg +0 -1831
  93. package/docconfig/template/static/fonts/OpenSans-Regular-webfont.woff +0 -0
  94. package/docconfig/template/static/fonts/OpenSans-Semibold-webfont.eot +0 -0
  95. package/docconfig/template/static/fonts/OpenSans-Semibold-webfont.svg +0 -1830
  96. package/docconfig/template/static/fonts/OpenSans-Semibold-webfont.ttf +0 -0
  97. package/docconfig/template/static/fonts/OpenSans-Semibold-webfont.woff +0 -0
  98. package/docconfig/template/static/fonts/OpenSans-SemiboldItalic-webfont.eot +0 -0
  99. package/docconfig/template/static/fonts/OpenSans-SemiboldItalic-webfont.svg +0 -1830
  100. package/docconfig/template/static/fonts/OpenSans-SemiboldItalic-webfont.ttf +0 -0
  101. package/docconfig/template/static/fonts/OpenSans-SemiboldItalic-webfont.woff +0 -0
  102. package/docconfig/template/static/scripts/linenumber.js +0 -25
  103. package/docconfig/template/static/scripts/prettify/Apache-License-2.0.txt +0 -202
  104. package/docconfig/template/static/scripts/prettify/lang-css.js +0 -2
  105. package/docconfig/template/static/scripts/prettify/prettify.js +0 -28
  106. package/docconfig/template/static/styles/jsdoc-default.css +0 -605
  107. package/docconfig/template/static/styles/prettify-jsdoc.css +0 -111
  108. package/docconfig/template/static/styles/prettify-tomorrow.css +0 -132
  109. package/docconfig/template/tmpl/augments.tmpl +0 -10
  110. package/docconfig/template/tmpl/container.tmpl +0 -183
  111. package/docconfig/template/tmpl/details.tmpl +0 -143
  112. package/docconfig/template/tmpl/example.tmpl +0 -2
  113. package/docconfig/template/tmpl/examples.tmpl +0 -13
  114. package/docconfig/template/tmpl/exceptions.tmpl +0 -32
  115. package/docconfig/template/tmpl/layout.tmpl +0 -47
  116. package/docconfig/template/tmpl/mainpage.tmpl +0 -10
  117. package/docconfig/template/tmpl/members.tmpl +0 -38
  118. package/docconfig/template/tmpl/method.tmpl +0 -105
  119. package/docconfig/template/tmpl/params.tmpl +0 -124
  120. package/docconfig/template/tmpl/properties.tmpl +0 -108
  121. package/docconfig/template/tmpl/returns.tmpl +0 -19
  122. package/docconfig/template/tmpl/source.tmpl +0 -8
  123. package/docconfig/template/tmpl/tutorial.tmpl +0 -19
  124. package/docconfig/template/tmpl/type.tmpl +0 -7
  125. package/docs/FileHound.html +0 -3079
  126. package/docs/FileHound_modified.html +0 -245
  127. package/docs/_config.yml +0 -1
  128. package/docs/filehound.js.html +0 -697
  129. package/docs/fonts/OpenSans-Bold-webfont.eot +0 -0
  130. package/docs/fonts/OpenSans-Bold-webfont.svg +0 -1830
  131. package/docs/fonts/OpenSans-Bold-webfont.woff +0 -0
  132. package/docs/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
  133. package/docs/fonts/OpenSans-BoldItalic-webfont.svg +0 -1830
  134. package/docs/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
  135. package/docs/fonts/OpenSans-Italic-webfont.eot +0 -0
  136. package/docs/fonts/OpenSans-Italic-webfont.svg +0 -1830
  137. package/docs/fonts/OpenSans-Italic-webfont.woff +0 -0
  138. package/docs/fonts/OpenSans-Light-webfont.eot +0 -0
  139. package/docs/fonts/OpenSans-Light-webfont.svg +0 -1831
  140. package/docs/fonts/OpenSans-Light-webfont.woff +0 -0
  141. package/docs/fonts/OpenSans-LightItalic-webfont.eot +0 -0
  142. package/docs/fonts/OpenSans-LightItalic-webfont.svg +0 -1835
  143. package/docs/fonts/OpenSans-LightItalic-webfont.woff +0 -0
  144. package/docs/fonts/OpenSans-Regular-webfont.eot +0 -0
  145. package/docs/fonts/OpenSans-Regular-webfont.svg +0 -1831
  146. package/docs/fonts/OpenSans-Regular-webfont.woff +0 -0
  147. package/docs/fonts/OpenSans-Semibold-webfont.eot +0 -0
  148. package/docs/fonts/OpenSans-Semibold-webfont.svg +0 -1830
  149. package/docs/fonts/OpenSans-Semibold-webfont.ttf +0 -0
  150. package/docs/fonts/OpenSans-Semibold-webfont.woff +0 -0
  151. package/docs/fonts/OpenSans-SemiboldItalic-webfont.eot +0 -0
  152. package/docs/fonts/OpenSans-SemiboldItalic-webfont.svg +0 -1830
  153. package/docs/fonts/OpenSans-SemiboldItalic-webfont.ttf +0 -0
  154. package/docs/fonts/OpenSans-SemiboldItalic-webfont.woff +0 -0
  155. package/docs/global.html +0 -288
  156. package/docs/index.html +0 -154
  157. package/docs/scripts/linenumber.js +0 -25
  158. package/docs/scripts/prettify/Apache-License-2.0.txt +0 -202
  159. package/docs/scripts/prettify/lang-css.js +0 -2
  160. package/docs/scripts/prettify/prettify.js +0 -28
  161. package/docs/styles/jsdoc-default.css +0 -605
  162. package/docs/styles/prettify-jsdoc.css +0 -111
  163. package/docs/styles/prettify-tomorrow.css +0 -132
  164. package/docs.md +0 -164
  165. package/index.js +0 -1
  166. package/issue_template.md +0 -6
  167. package/test/filehound.ts +0 -1076
  168. package/test/files.ts +0 -29
  169. package/test/fixtures/custom/failed.txt +0 -0
  170. package/test/fixtures/custom/passed.txt +0 -0
  171. package/test/fixtures/deeplyNested/c.json +0 -0
  172. package/test/fixtures/deeplyNested/d.json +0 -0
  173. package/test/fixtures/deeplyNested/mydir/e.json +0 -0
  174. package/test/fixtures/deeplyNested/mydir/mydir2/f.json +0 -0
  175. package/test/fixtures/deeplyNested/mydir/mydir2/mydir3/mydir4/failed.json +0 -0
  176. package/test/fixtures/deeplyNested/mydir/mydir2/mydir3/z.json +0 -0
  177. package/test/fixtures/deeplyNested/mydir/mydir2/y.json +0 -0
  178. package/test/fixtures/deeplyNestedWithHiddenDir/c.json +0 -0
  179. package/test/fixtures/deeplyNestedWithHiddenDir/d.json +0 -0
  180. package/test/fixtures/deeplyNestedWithHiddenDir/mydir/e.json +0 -0
  181. package/test/fixtures/deeplyNestedWithHiddenDir/mydir/mydir2/f.json +0 -0
  182. package/test/fixtures/deeplyNestedWithHiddenDir/mydir/mydir2/mydir3/mydir4/.mydir5/.keep +0 -0
  183. package/test/fixtures/deeplyNestedWithHiddenDir/mydir/mydir2/mydir3/mydir4/failed.json +0 -0
  184. package/test/fixtures/deeplyNestedWithHiddenDir/mydir/mydir2/mydir3/z.json +0 -0
  185. package/test/fixtures/deeplyNestedWithHiddenDir/mydir/mydir2/y.json +0 -0
  186. package/test/fixtures/ext/Dummy.java +0 -0
  187. package/test/fixtures/ext/Dumpy.go +0 -0
  188. package/test/fixtures/ext/dummy.json +0 -0
  189. package/test/fixtures/ext/dummy.txt +0 -0
  190. package/test/fixtures/justFiles/a.json +0 -0
  191. package/test/fixtures/justFiles/b.json +0 -0
  192. package/test/fixtures/justFiles/dummy.txt +0 -0
  193. package/test/fixtures/mixed/a.json +0 -0
  194. package/test/fixtures/mixed/aabbcc.json +0 -0
  195. package/test/fixtures/mixed/ab.json +0 -0
  196. package/test/fixtures/mixed/z.json +0 -0
  197. package/test/fixtures/nested/.hidden1/bad.txt +0 -0
  198. package/test/fixtures/nested/c.json +0 -0
  199. package/test/fixtures/nested/d.json +0 -0
  200. package/test/fixtures/nested/mydir/e.json +0 -0
  201. package/test/fixtures/sizes/10b.txt +0 -0
  202. package/test/fixtures/sizes/1b.txt +0 -0
  203. package/test/fixtures/sizes/1k.txt +0 -0
  204. package/test/fixtures/sizes/2k.txt +0 -0
  205. package/test/fixtures/visibility/.hidden/.hidden.json +0 -0
  206. package/test/fixtures/visibility/.hidden/visible.json +0 -3
  207. package/test/fixtures/visibility/.hidden.json +0 -3
  208. package/test/fixtures/visibility/visible/.hidden.json +0 -3
  209. package/test/fixtures/visibility/visible.json +0 -3
  210. package/test/mocha.opts +0 -4
  211. package/tsconfig.json +0 -16
  212. package/tslint.json +0 -44
@@ -1,3079 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width,initial-scale=1">
6
- <title>FileHound - Documentation</title>
7
-
8
- <script src="scripts/prettify/prettify.js"></script>
9
- <script src="scripts/prettify/lang-css.js"></script>
10
- <!--[if lt IE 9]>
11
- <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
12
- <![endif]-->
13
- <link type="text/css" rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
14
- <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
15
- <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
16
- </head>
17
- <body>
18
-
19
- <input type="checkbox" id="nav-trigger" class="nav-trigger" />
20
- <label for="nav-trigger" class="navicon-button x">
21
- <div class="navicon"></div>
22
- </label>
23
-
24
- <label for="nav-trigger" class="overlay"></label>
25
-
26
- <nav>
27
- <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="FileHound.html">FileHound</a><ul class='methods'><li data-type='method'><a href="FileHound.html#.accessed">accessed</a></li><li data-type='method'><a href="FileHound.html#.any">any</a></li><li data-type='method'><a href="FileHound.html#.create">create</a></li><li data-type='method'><a href="FileHound.html#.modified">modified</a></li><li data-type='method'><a href="FileHound.html#addFilter">addFilter</a></li><li data-type='method'><a href="FileHound.html#changed">changed</a></li><li data-type='method'><a href="FileHound.html#depth">depth</a></li><li data-type='method'><a href="FileHound.html#directory">directory</a></li><li data-type='method'><a href="FileHound.html#discard">discard</a></li><li data-type='method'><a href="FileHound.html#ext">ext</a></li><li data-type='method'><a href="FileHound.html#find">find</a></li><li data-type='method'><a href="FileHound.html#findSync">findSync</a></li><li data-type='method'><a href="FileHound.html#glob">glob</a></li><li data-type='method'><a href="FileHound.html#ignoreHiddenDirectories">ignoreHiddenDirectories</a></li><li data-type='method'><a href="FileHound.html#ignoreHiddenFiles">ignoreHiddenFiles</a></li><li data-type='method'><a href="FileHound.html#isEmpty">isEmpty</a></li><li data-type='method'><a href="FileHound.html#match">match</a></li><li data-type='method'><a href="FileHound.html#not">not</a></li><li data-type='method'><a href="FileHound.html#path">path</a></li><li data-type='method'><a href="FileHound.html#paths">paths</a></li><li data-type='method'><a href="FileHound.html#size">size</a></li><li data-type='method'><a href="FileHound.html#socket">socket</a></li></ul></li></ul>
28
- </nav>
29
-
30
- <div id="main">
31
-
32
- <h1 class="page-title">FileHound</h1>
33
-
34
-
35
-
36
-
37
-
38
-
39
-
40
- <section>
41
-
42
- <header>
43
-
44
- <h2>
45
- FileHound
46
- </h2>
47
-
48
-
49
- </header>
50
-
51
- <article>
52
- <div class="container-overview">
53
-
54
-
55
-
56
-
57
-
58
- <h4 class="name" id="FileHound"><span class="type-signature"></span>new FileHound<span class="signature">()</span><span class="type-signature"></span></h4>
59
-
60
-
61
-
62
-
63
-
64
-
65
-
66
-
67
-
68
-
69
-
70
-
71
-
72
-
73
-
74
-
75
-
76
- <dl class="details">
77
-
78
-
79
-
80
-
81
-
82
-
83
-
84
-
85
-
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
-
98
-
99
-
100
-
101
-
102
-
103
- <dt class="tag-source">Source:</dt>
104
- <dd class="tag-source"><ul class="dummy"><li>
105
- <a href="filehound.js.html">filehound.js</a>, <a href="filehound.js.html#line42">line 42</a>
106
- </li></ul></dd>
107
-
108
-
109
-
110
-
111
-
112
-
113
-
114
- </dl>
115
-
116
-
117
-
118
-
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
-
127
-
128
-
129
-
130
-
131
-
132
- </div>
133
-
134
-
135
-
136
-
137
-
138
-
139
-
140
-
141
-
142
-
143
-
144
-
145
-
146
-
147
- <h3 class="subsection-title">Methods</h3>
148
-
149
-
150
-
151
-
152
-
153
-
154
- <h4 class="name" id=".accessed"><span class="type-signature">(static) </span>accessed<span class="signature">(dateExpression)</span><span class="type-signature"></span></h4>
155
-
156
-
157
-
158
-
159
-
160
- <div class="description">
161
- <p>Filters by file access time</p>
162
- </div>
163
-
164
-
165
-
166
-
167
-
168
-
169
-
170
-
171
-
172
- <h5>Parameters:</h5>
173
-
174
-
175
- <table class="params">
176
- <thead>
177
- <tr>
178
-
179
- <th>Name</th>
180
-
181
-
182
- <th>Type</th>
183
-
184
-
185
-
186
-
187
-
188
- <th class="last">Description</th>
189
- </tr>
190
- </thead>
191
-
192
- <tbody>
193
-
194
-
195
- <tr>
196
-
197
- <td class="name"><code>dateExpression</code></td>
198
-
199
-
200
- <td class="type">
201
-
202
-
203
- <span class="param-type">string</span>
204
-
205
-
206
-
207
- </td>
208
-
209
-
210
-
211
-
212
-
213
- <td class="description last"><p>date expression</p></td>
214
- </tr>
215
-
216
-
217
- </tbody>
218
- </table>
219
-
220
-
221
-
222
-
223
-
224
-
225
- <dl class="details">
226
-
227
-
228
-
229
-
230
-
231
-
232
-
233
-
234
-
235
-
236
-
237
-
238
-
239
-
240
-
241
-
242
-
243
-
244
-
245
-
246
-
247
-
248
-
249
-
250
-
251
-
252
- <dt class="tag-source">Source:</dt>
253
- <dd class="tag-source"><ul class="dummy"><li>
254
- <a href="filehound.js.html">filehound.js</a>, <a href="filehound.js.html#line118">line 118</a>
255
- </li></ul></dd>
256
-
257
-
258
-
259
-
260
-
261
-
262
-
263
- </dl>
264
-
265
-
266
-
267
-
268
-
269
-
270
-
271
-
272
-
273
-
274
-
275
-
276
-
277
- <h5>Returns:</h5>
278
-
279
-
280
- <div class="param-desc">
281
- <p>a FileHound instance</p>
282
- </div>
283
-
284
-
285
-
286
-
287
-
288
-
289
- <h5>Example</h5>
290
-
291
- <pre class="prettyprint"><code>import FileHound from 'filehound';
292
-
293
- const filehound = FileHound.create();
294
- filehound
295
- .accessed("&lt; 10 minutes")
296
- .find()
297
- .each(console.log);</code></pre>
298
-
299
-
300
-
301
-
302
-
303
-
304
-
305
-
306
- <h4 class="name" id=".any"><span class="type-signature">(static) </span>any<span class="signature">()</span><span class="type-signature"></span></h4>
307
-
308
-
309
-
310
-
311
-
312
- <div class="description">
313
- <p>Returns all matches from one of more FileHound instances</p>
314
- </div>
315
-
316
-
317
-
318
-
319
-
320
-
321
-
322
-
323
-
324
-
325
-
326
-
327
-
328
- <dl class="details">
329
-
330
-
331
-
332
-
333
-
334
-
335
-
336
-
337
-
338
-
339
-
340
-
341
-
342
-
343
-
344
-
345
-
346
-
347
-
348
-
349
-
350
-
351
-
352
-
353
-
354
-
355
- <dt class="tag-source">Source:</dt>
356
- <dd class="tag-source"><ul class="dummy"><li>
357
- <a href="filehound.js.html">filehound.js</a>, <a href="filehound.js.html#line72">line 72</a>
358
- </li></ul></dd>
359
-
360
-
361
-
362
-
363
-
364
-
365
-
366
- </dl>
367
-
368
-
369
-
370
-
371
-
372
-
373
-
374
-
375
-
376
-
377
-
378
-
379
-
380
- <h5>Returns:</h5>
381
-
382
-
383
- <div class="param-desc">
384
- <p>a promise containing all matches. If the Promise fulfils,
385
- the fulfilment value is an array of all matching files.</p>
386
- </div>
387
-
388
-
389
-
390
-
391
-
392
-
393
- <h5>Example</h5>
394
-
395
- <pre class="prettyprint"><code>import FileHound from 'filehound';
396
-
397
- const filehound = FileHound.any(fh1, fh2);</code></pre>
398
-
399
-
400
-
401
-
402
-
403
-
404
-
405
-
406
- <h4 class="name" id=".create"><span class="type-signature">(static) </span>create<span class="signature">()</span><span class="type-signature"></span></h4>
407
-
408
-
409
-
410
-
411
-
412
- <div class="description">
413
- <p>Static factory method to create an instance of FileHound</p>
414
- </div>
415
-
416
-
417
-
418
-
419
-
420
-
421
-
422
-
423
-
424
-
425
-
426
-
427
-
428
- <dl class="details">
429
-
430
-
431
-
432
-
433
-
434
-
435
-
436
-
437
-
438
-
439
-
440
-
441
-
442
-
443
-
444
-
445
-
446
-
447
-
448
-
449
-
450
-
451
-
452
-
453
-
454
-
455
- <dt class="tag-source">Source:</dt>
456
- <dd class="tag-source"><ul class="dummy"><li>
457
- <a href="filehound.js.html">filehound.js</a>, <a href="filehound.js.html#line55">line 55</a>
458
- </li></ul></dd>
459
-
460
-
461
-
462
-
463
-
464
-
465
-
466
- </dl>
467
-
468
-
469
-
470
-
471
-
472
-
473
-
474
-
475
-
476
-
477
-
478
-
479
-
480
- <h5>Returns:</h5>
481
-
482
-
483
- <div class="param-desc">
484
- <p>FileHound instance</p>
485
- </div>
486
-
487
-
488
-
489
-
490
-
491
-
492
- <h5>Example</h5>
493
-
494
- <pre class="prettyprint"><code>import FileHound from 'filehound';
495
-
496
- const filehound = FileHound.create();</code></pre>
497
-
498
-
499
-
500
-
501
-
502
-
503
-
504
-
505
- <h4 class="name" id=".modified"><span class="type-signature">(static) </span>modified<span class="signature">(dateExpression)</span><span class="type-signature"></span></h4>
506
-
507
-
508
-
509
-
510
-
511
- <div class="description">
512
- <p>Filters by modifiction time</p>
513
- </div>
514
-
515
-
516
-
517
-
518
-
519
-
520
-
521
-
522
-
523
- <h5>Parameters:</h5>
524
-
525
-
526
- <table class="params">
527
- <thead>
528
- <tr>
529
-
530
- <th>Name</th>
531
-
532
-
533
- <th>Type</th>
534
-
535
-
536
-
537
-
538
-
539
- <th class="last">Description</th>
540
- </tr>
541
- </thead>
542
-
543
- <tbody>
544
-
545
-
546
- <tr>
547
-
548
- <td class="name"><code>dateExpression</code></td>
549
-
550
-
551
- <td class="type">
552
-
553
-
554
- <span class="param-type">string</span>
555
-
556
-
557
-
558
- </td>
559
-
560
-
561
-
562
-
563
-
564
- <td class="description last"><p>date expression</p></td>
565
- </tr>
566
-
567
-
568
- </tbody>
569
- </table>
570
-
571
-
572
-
573
-
574
-
575
-
576
- <dl class="details">
577
-
578
-
579
-
580
-
581
-
582
-
583
-
584
-
585
-
586
-
587
-
588
-
589
-
590
-
591
-
592
-
593
-
594
-
595
-
596
-
597
-
598
-
599
-
600
-
601
-
602
-
603
- <dt class="tag-source">Source:</dt>
604
- <dd class="tag-source"><ul class="dummy"><li>
605
- <a href="filehound.js.html">filehound.js</a>, <a href="filehound.js.html#line94">line 94</a>
606
- </li></ul></dd>
607
-
608
-
609
-
610
-
611
-
612
-
613
-
614
- </dl>
615
-
616
-
617
-
618
-
619
-
620
-
621
-
622
-
623
-
624
-
625
-
626
-
627
-
628
- <h5>Returns:</h5>
629
-
630
-
631
- <div class="param-desc">
632
- <p>a FileHound instance</p>
633
- </div>
634
-
635
-
636
-
637
-
638
-
639
-
640
- <h5>Example</h5>
641
-
642
- <pre class="prettyprint"><code>import FileHound from 'filehound';
643
-
644
- const filehound = FileHound.create();
645
- filehound
646
- .modified("&lt; 2 days")
647
- .find()
648
- .each(console.log);</code></pre>
649
-
650
-
651
-
652
-
653
-
654
-
655
-
656
-
657
- <h4 class="name" id="addFilter"><span class="type-signature"></span>addFilter<span class="signature">(function)</span><span class="type-signature"></span></h4>
658
-
659
-
660
-
661
-
662
-
663
-
664
-
665
-
666
-
667
-
668
-
669
-
670
-
671
- <h5>Parameters:</h5>
672
-
673
-
674
- <table class="params">
675
- <thead>
676
- <tr>
677
-
678
- <th>Name</th>
679
-
680
-
681
- <th>Type</th>
682
-
683
-
684
-
685
-
686
-
687
- <th class="last">Description</th>
688
- </tr>
689
- </thead>
690
-
691
- <tbody>
692
-
693
-
694
- <tr>
695
-
696
- <td class="name"><code>function</code></td>
697
-
698
-
699
- <td class="type">
700
-
701
-
702
- <span class="param-type">function</span>
703
-
704
-
705
-
706
- </td>
707
-
708
-
709
-
710
-
711
-
712
- <td class="description last"><p>custom filter function</p></td>
713
- </tr>
714
-
715
-
716
- </tbody>
717
- </table>
718
-
719
-
720
-
721
-
722
-
723
-
724
- <dl class="details">
725
-
726
-
727
-
728
-
729
-
730
-
731
-
732
-
733
-
734
-
735
-
736
-
737
-
738
-
739
-
740
-
741
-
742
-
743
-
744
-
745
-
746
-
747
-
748
-
749
-
750
-
751
- <dt class="tag-source">Source:</dt>
752
- <dd class="tag-source"><ul class="dummy"><li>
753
- <a href="filehound.js.html">filehound.js</a>, <a href="filehound.js.html#line167">line 167</a>
754
- </li></ul></dd>
755
-
756
-
757
-
758
-
759
-
760
-
761
-
762
- </dl>
763
-
764
-
765
-
766
-
767
-
768
-
769
-
770
-
771
-
772
-
773
-
774
-
775
-
776
- <h5>Returns:</h5>
777
-
778
-
779
- <div class="param-desc">
780
- <p>a FileHound instance</p>
781
- </div>
782
-
783
-
784
-
785
-
786
-
787
-
788
- <h5>Example</h5>
789
-
790
- <pre class="prettyprint"><code>import FileHound from 'filehound';
791
-
792
- const filehound = FileHound.create();
793
- filehound
794
- .addFilter(customFilter)
795
- .find()
796
- .each(consoe.log);</code></pre>
797
-
798
-
799
-
800
-
801
-
802
-
803
-
804
-
805
- <h4 class="name" id="changed"><span class="type-signature"></span>changed<span class="signature">(dateExpression)</span><span class="type-signature"></span></h4>
806
-
807
-
808
-
809
-
810
-
811
- <div class="description">
812
- <p>Filters change time</p>
813
- </div>
814
-
815
-
816
-
817
-
818
-
819
-
820
-
821
-
822
-
823
- <h5>Parameters:</h5>
824
-
825
-
826
- <table class="params">
827
- <thead>
828
- <tr>
829
-
830
- <th>Name</th>
831
-
832
-
833
- <th>Type</th>
834
-
835
-
836
-
837
-
838
-
839
- <th class="last">Description</th>
840
- </tr>
841
- </thead>
842
-
843
- <tbody>
844
-
845
-
846
- <tr>
847
-
848
- <td class="name"><code>dateExpression</code></td>
849
-
850
-
851
- <td class="type">
852
-
853
-
854
- <span class="param-type">string</span>
855
-
856
-
857
-
858
- </td>
859
-
860
-
861
-
862
-
863
-
864
- <td class="description last"><p>date expression</p></td>
865
- </tr>
866
-
867
-
868
- </tbody>
869
- </table>
870
-
871
-
872
-
873
-
874
-
875
-
876
- <dl class="details">
877
-
878
-
879
-
880
-
881
-
882
-
883
-
884
-
885
-
886
-
887
-
888
-
889
-
890
-
891
-
892
-
893
-
894
-
895
-
896
-
897
-
898
-
899
-
900
-
901
-
902
-
903
- <dt class="tag-source">Source:</dt>
904
- <dd class="tag-source"><ul class="dummy"><li>
905
- <a href="filehound.js.html">filehound.js</a>, <a href="filehound.js.html#line142">line 142</a>
906
- </li></ul></dd>
907
-
908
-
909
-
910
-
911
-
912
-
913
-
914
- </dl>
915
-
916
-
917
-
918
-
919
-
920
-
921
-
922
-
923
-
924
-
925
-
926
-
927
-
928
- <h5>Returns:</h5>
929
-
930
-
931
- <div class="param-desc">
932
- <p>a FileHound instance</p>
933
- </div>
934
-
935
-
936
-
937
-
938
-
939
-
940
- <h5>Example</h5>
941
-
942
- <pre class="prettyprint"><code>import FileHound from 'filehound';
943
-
944
- const filehound = FileHound.create();
945
- filehound
946
- .changed("&lt; 10 minutes")
947
- .find()
948
- .each(console.log);</code></pre>
949
-
950
-
951
-
952
-
953
-
954
-
955
-
956
-
957
- <h4 class="name" id="depth"><span class="type-signature"></span>depth<span class="signature">()</span><span class="type-signature"></span></h4>
958
-
959
-
960
-
961
-
962
-
963
- <div class="description">
964
- <p>Specify the directory search depth. If set to zero, recursive searching
965
- will be disabled</p>
966
- </div>
967
-
968
-
969
-
970
-
971
-
972
-
973
-
974
-
975
-
976
-
977
-
978
-
979
-
980
- <dl class="details">
981
-
982
-
983
-
984
-
985
-
986
-
987
-
988
-
989
-
990
-
991
-
992
-
993
-
994
-
995
-
996
-
997
-
998
-
999
-
1000
-
1001
-
1002
-
1003
-
1004
-
1005
-
1006
-
1007
- <dt class="tag-source">Source:</dt>
1008
- <dd class="tag-source"><ul class="dummy"><li>
1009
- <a href="filehound.js.html">filehound.js</a>, <a href="filehound.js.html#line484">line 484</a>
1010
- </li></ul></dd>
1011
-
1012
-
1013
-
1014
-
1015
-
1016
-
1017
-
1018
- </dl>
1019
-
1020
-
1021
-
1022
-
1023
-
1024
-
1025
-
1026
-
1027
-
1028
-
1029
-
1030
-
1031
-
1032
- <h5>Returns:</h5>
1033
-
1034
-
1035
- <div class="param-desc">
1036
- <p>a FileHound instance</p>
1037
- </div>
1038
-
1039
-
1040
-
1041
-
1042
-
1043
-
1044
- <h5>Example</h5>
1045
-
1046
- <pre class="prettyprint"><code>import FileHound from 'filehound';
1047
-
1048
- const filehound = FileHound.create();
1049
- filehound
1050
- .depth(0)
1051
- .find()
1052
- .each(console.log); // array of files names only in the current directory</code></pre>
1053
-
1054
-
1055
-
1056
-
1057
-
1058
-
1059
-
1060
-
1061
- <h4 class="name" id="directory"><span class="type-signature"></span>directory<span class="signature">()</span><span class="type-signature"></span></h4>
1062
-
1063
-
1064
-
1065
-
1066
-
1067
- <div class="description">
1068
- <p>Find sub-directories</p>
1069
- </div>
1070
-
1071
-
1072
-
1073
-
1074
-
1075
-
1076
-
1077
-
1078
-
1079
-
1080
-
1081
-
1082
-
1083
- <dl class="details">
1084
-
1085
-
1086
-
1087
-
1088
-
1089
-
1090
-
1091
-
1092
-
1093
-
1094
-
1095
-
1096
-
1097
-
1098
-
1099
-
1100
-
1101
-
1102
-
1103
-
1104
-
1105
-
1106
-
1107
-
1108
-
1109
-
1110
- <dt class="tag-source">Source:</dt>
1111
- <dd class="tag-source"><ul class="dummy"><li>
1112
- <a href="filehound.js.html">filehound.js</a>, <a href="filehound.js.html#line441">line 441</a>
1113
- </li></ul></dd>
1114
-
1115
-
1116
-
1117
-
1118
-
1119
-
1120
-
1121
- </dl>
1122
-
1123
-
1124
-
1125
-
1126
-
1127
-
1128
-
1129
-
1130
-
1131
-
1132
-
1133
-
1134
-
1135
- <h5>Returns:</h5>
1136
-
1137
-
1138
- <div class="param-desc">
1139
- <p>a FileHound instance</p>
1140
- </div>
1141
-
1142
-
1143
-
1144
-
1145
-
1146
-
1147
- <h5>Example</h5>
1148
-
1149
- <pre class="prettyprint"><code>import FileHound from 'filehound';
1150
-
1151
- const filehound = FileHound.create();
1152
- filehound
1153
- .directory()
1154
- .find()
1155
- .each(console.log); // array of matching sub-directories</code></pre>
1156
-
1157
-
1158
-
1159
-
1160
-
1161
-
1162
-
1163
-
1164
- <h4 class="name" id="discard"><span class="type-signature"></span>discard<span class="signature">(regex)</span><span class="type-signature"></span></h4>
1165
-
1166
-
1167
-
1168
-
1169
-
1170
- <div class="description">
1171
- <p>Ignores files or sub-directories matching pattern</p>
1172
- </div>
1173
-
1174
-
1175
-
1176
-
1177
-
1178
-
1179
-
1180
-
1181
-
1182
- <h5>Parameters:</h5>
1183
-
1184
-
1185
- <table class="params">
1186
- <thead>
1187
- <tr>
1188
-
1189
- <th>Name</th>
1190
-
1191
-
1192
- <th>Type</th>
1193
-
1194
-
1195
-
1196
-
1197
-
1198
- <th class="last">Description</th>
1199
- </tr>
1200
- </thead>
1201
-
1202
- <tbody>
1203
-
1204
-
1205
- <tr>
1206
-
1207
- <td class="name"><code>regex</code></td>
1208
-
1209
-
1210
- <td class="type">
1211
-
1212
-
1213
- <span class="param-type">string</span>
1214
- |
1215
-
1216
- <span class="param-type">array</span>
1217
-
1218
-
1219
-
1220
- </td>
1221
-
1222
-
1223
-
1224
-
1225
-
1226
- <td class="description last"><p>regex or array of regex</p></td>
1227
- </tr>
1228
-
1229
-
1230
- </tbody>
1231
- </table>
1232
-
1233
-
1234
-
1235
-
1236
-
1237
-
1238
- <dl class="details">
1239
-
1240
-
1241
-
1242
-
1243
-
1244
-
1245
-
1246
-
1247
-
1248
-
1249
-
1250
-
1251
-
1252
-
1253
-
1254
-
1255
-
1256
-
1257
-
1258
-
1259
-
1260
-
1261
-
1262
-
1263
-
1264
-
1265
- <dt class="tag-source">Source:</dt>
1266
- <dd class="tag-source"><ul class="dummy"><li>
1267
- <a href="filehound.js.html">filehound.js</a>, <a href="filehound.js.html#line234">line 234</a>
1268
- </li></ul></dd>
1269
-
1270
-
1271
-
1272
-
1273
-
1274
-
1275
-
1276
- </dl>
1277
-
1278
-
1279
-
1280
-
1281
-
1282
-
1283
-
1284
-
1285
-
1286
-
1287
-
1288
-
1289
-
1290
- <h5>Returns:</h5>
1291
-
1292
-
1293
- <div class="param-desc">
1294
- <p>a FileHound instance</p>
1295
- </div>
1296
-
1297
-
1298
-
1299
-
1300
-
1301
-
1302
- <h5>Example</h5>
1303
-
1304
- <pre class="prettyprint"><code>import FileHound from 'filehound';
1305
-
1306
- const filehound = FileHound.create();
1307
- filehound
1308
- .discard("*.tmp*")
1309
- .find()
1310
- .each(console.log);</code></pre>
1311
-
1312
-
1313
-
1314
-
1315
-
1316
-
1317
-
1318
-
1319
- <h4 class="name" id="ext"><span class="type-signature"></span>ext<span class="signature">(extensions)</span><span class="type-signature"></span></h4>
1320
-
1321
-
1322
-
1323
-
1324
-
1325
- <div class="description">
1326
- <p>Filter on file extension</p>
1327
- </div>
1328
-
1329
-
1330
-
1331
-
1332
-
1333
-
1334
-
1335
-
1336
-
1337
- <h5>Parameters:</h5>
1338
-
1339
-
1340
- <table class="params">
1341
- <thead>
1342
- <tr>
1343
-
1344
- <th>Name</th>
1345
-
1346
-
1347
- <th>Type</th>
1348
-
1349
-
1350
-
1351
-
1352
-
1353
- <th class="last">Description</th>
1354
- </tr>
1355
- </thead>
1356
-
1357
- <tbody>
1358
-
1359
-
1360
- <tr>
1361
-
1362
- <td class="name"><code>extensions</code></td>
1363
-
1364
-
1365
- <td class="type">
1366
-
1367
-
1368
- <span class="param-type">string</span>
1369
- |
1370
-
1371
- <span class="param-type">array</span>
1372
-
1373
-
1374
-
1375
- </td>
1376
-
1377
-
1378
-
1379
-
1380
-
1381
- <td class="description last"><p>extension or an array of extensions</p></td>
1382
- </tr>
1383
-
1384
-
1385
- </tbody>
1386
- </table>
1387
-
1388
-
1389
-
1390
-
1391
-
1392
-
1393
- <dl class="details">
1394
-
1395
-
1396
-
1397
-
1398
-
1399
-
1400
-
1401
-
1402
-
1403
-
1404
-
1405
-
1406
-
1407
-
1408
-
1409
-
1410
-
1411
-
1412
-
1413
-
1414
-
1415
-
1416
-
1417
-
1418
-
1419
-
1420
- <dt class="tag-source">Source:</dt>
1421
- <dd class="tag-source"><ul class="dummy"><li>
1422
- <a href="filehound.js.html">filehound.js</a>, <a href="filehound.js.html#line260">line 260</a>
1423
- </li></ul></dd>
1424
-
1425
-
1426
-
1427
-
1428
-
1429
-
1430
-
1431
- </dl>
1432
-
1433
-
1434
-
1435
-
1436
-
1437
-
1438
-
1439
-
1440
-
1441
-
1442
-
1443
-
1444
-
1445
- <h5>Returns:</h5>
1446
-
1447
-
1448
- <div class="param-desc">
1449
- <p>a FileHound instance</p>
1450
- </div>
1451
-
1452
-
1453
-
1454
-
1455
-
1456
-
1457
- <h5>Example</h5>
1458
-
1459
- <pre class="prettyprint"><code>import FileHound from 'filehound';
1460
-
1461
- let filehound = FileHound.create();
1462
- filehound
1463
- .ext(".json")
1464
- .find()
1465
- .each(console.log);
1466
-
1467
- // array of extensions to filter by
1468
- filehound = FileHound.create();
1469
- filehound
1470
- .ext([".json", ".txt"])
1471
- .find()
1472
- .each(console.log);
1473
-
1474
- // supports var args
1475
- filehound = FileHound.create();
1476
- filehound
1477
- .ext(".json", ".txt")
1478
- .find()
1479
- .each(console.log);</code></pre>
1480
-
1481
-
1482
-
1483
-
1484
-
1485
-
1486
-
1487
-
1488
- <h4 class="name" id="find"><span class="type-signature"></span>find<span class="signature">(function)</span><span class="type-signature"></span></h4>
1489
-
1490
-
1491
-
1492
-
1493
-
1494
- <div class="description">
1495
- <p>Asynchronously executes a file search.</p>
1496
- </div>
1497
-
1498
-
1499
-
1500
-
1501
-
1502
-
1503
-
1504
-
1505
-
1506
- <h5>Parameters:</h5>
1507
-
1508
-
1509
- <table class="params">
1510
- <thead>
1511
- <tr>
1512
-
1513
- <th>Name</th>
1514
-
1515
-
1516
- <th>Type</th>
1517
-
1518
-
1519
-
1520
-
1521
-
1522
- <th class="last">Description</th>
1523
- </tr>
1524
- </thead>
1525
-
1526
- <tbody>
1527
-
1528
-
1529
- <tr>
1530
-
1531
- <td class="name"><code>function</code></td>
1532
-
1533
-
1534
- <td class="type">
1535
-
1536
-
1537
- <span class="param-type">function</span>
1538
-
1539
-
1540
-
1541
- </td>
1542
-
1543
-
1544
-
1545
-
1546
-
1547
- <td class="description last"><p>Optionally accepts a callback function</p></td>
1548
- </tr>
1549
-
1550
-
1551
- </tbody>
1552
- </table>
1553
-
1554
-
1555
-
1556
-
1557
-
1558
-
1559
- <dl class="details">
1560
-
1561
-
1562
-
1563
-
1564
-
1565
-
1566
-
1567
-
1568
-
1569
-
1570
-
1571
-
1572
-
1573
-
1574
-
1575
-
1576
-
1577
-
1578
-
1579
-
1580
-
1581
-
1582
-
1583
-
1584
-
1585
-
1586
- <dt class="tag-source">Source:</dt>
1587
- <dd class="tag-source"><ul class="dummy"><li>
1588
- <a href="filehound.js.html">filehound.js</a>, <a href="filehound.js.html#line507">line 507</a>
1589
- </li></ul></dd>
1590
-
1591
-
1592
-
1593
-
1594
-
1595
-
1596
-
1597
- </dl>
1598
-
1599
-
1600
-
1601
-
1602
-
1603
-
1604
-
1605
-
1606
-
1607
-
1608
-
1609
-
1610
-
1611
- <h5>Returns:</h5>
1612
-
1613
-
1614
- <div class="param-desc">
1615
- <p>Returns a Promise of all matches. If the Promise fulfils,
1616
- the fulfilment value is an array of all matching files</p>
1617
- </div>
1618
-
1619
-
1620
-
1621
-
1622
-
1623
-
1624
- <h5>Example</h5>
1625
-
1626
- <pre class="prettyprint"><code>import FileHound from 'filehound';
1627
-
1628
- const filehound = FileHound.create();
1629
- filehound
1630
- .find()
1631
- .each(console.log);
1632
-
1633
- // using a callback
1634
- filehound
1635
- .find((err, files) => {
1636
- if (err) return console.error(err);
1637
-
1638
- console.log(files);
1639
- });</code></pre>
1640
-
1641
-
1642
-
1643
-
1644
-
1645
-
1646
-
1647
-
1648
- <h4 class="name" id="findSync"><span class="type-signature"></span>findSync<span class="signature">()</span><span class="type-signature"></span></h4>
1649
-
1650
-
1651
-
1652
-
1653
-
1654
- <div class="description">
1655
- <p>Synchronously executes a file search.</p>
1656
- </div>
1657
-
1658
-
1659
-
1660
-
1661
-
1662
-
1663
-
1664
-
1665
-
1666
-
1667
-
1668
-
1669
-
1670
- <dl class="details">
1671
-
1672
-
1673
-
1674
-
1675
-
1676
-
1677
-
1678
-
1679
-
1680
-
1681
-
1682
-
1683
-
1684
-
1685
-
1686
-
1687
-
1688
-
1689
-
1690
-
1691
-
1692
-
1693
-
1694
-
1695
-
1696
-
1697
- <dt class="tag-source">Source:</dt>
1698
- <dd class="tag-source"><ul class="dummy"><li>
1699
- <a href="filehound.js.html">filehound.js</a>, <a href="filehound.js.html#line548">line 548</a>
1700
- </li></ul></dd>
1701
-
1702
-
1703
-
1704
-
1705
-
1706
-
1707
-
1708
- </dl>
1709
-
1710
-
1711
-
1712
-
1713
-
1714
-
1715
-
1716
-
1717
-
1718
-
1719
-
1720
-
1721
-
1722
- <h5>Returns:</h5>
1723
-
1724
-
1725
- <div class="param-desc">
1726
- <p>Returns an array of all matching files</p>
1727
- </div>
1728
-
1729
-
1730
-
1731
-
1732
-
1733
-
1734
- <h5>Example</h5>
1735
-
1736
- <pre class="prettyprint"><code>import FileHound from 'filehound';
1737
-
1738
- const filehound = FileHound.create();
1739
- const files = filehound.findSync();
1740
- console.log(files);</code></pre>
1741
-
1742
-
1743
-
1744
-
1745
-
1746
-
1747
-
1748
-
1749
- <h4 class="name" id="glob"><span class="type-signature"></span>glob<span class="signature">(glob)</span><span class="type-signature"></span></h4>
1750
-
1751
-
1752
-
1753
-
1754
-
1755
- <div class="description">
1756
- <p>Filter by a file glob</p>
1757
- </div>
1758
-
1759
-
1760
-
1761
-
1762
-
1763
-
1764
-
1765
-
1766
-
1767
- <h5>Parameters:</h5>
1768
-
1769
-
1770
- <table class="params">
1771
- <thead>
1772
- <tr>
1773
-
1774
- <th>Name</th>
1775
-
1776
-
1777
- <th>Type</th>
1778
-
1779
-
1780
-
1781
-
1782
-
1783
- <th class="last">Description</th>
1784
- </tr>
1785
- </thead>
1786
-
1787
- <tbody>
1788
-
1789
-
1790
- <tr>
1791
-
1792
- <td class="name"><code>glob</code></td>
1793
-
1794
-
1795
- <td class="type">
1796
-
1797
-
1798
- <span class="param-type">string</span>
1799
-
1800
-
1801
-
1802
- </td>
1803
-
1804
-
1805
-
1806
-
1807
-
1808
- <td class="description last"><p>file glob</p></td>
1809
- </tr>
1810
-
1811
-
1812
- </tbody>
1813
- </table>
1814
-
1815
-
1816
-
1817
-
1818
-
1819
-
1820
- <dl class="details">
1821
-
1822
-
1823
-
1824
-
1825
-
1826
-
1827
-
1828
-
1829
-
1830
-
1831
-
1832
-
1833
-
1834
-
1835
-
1836
-
1837
-
1838
-
1839
-
1840
-
1841
-
1842
-
1843
-
1844
-
1845
-
1846
-
1847
- <dt class="tag-source">Source:</dt>
1848
- <dd class="tag-source"><ul class="dummy"><li>
1849
- <a href="filehound.js.html">filehound.js</a>, <a href="filehound.js.html#line344">line 344</a>
1850
- </li></ul></dd>
1851
-
1852
-
1853
-
1854
-
1855
-
1856
-
1857
-
1858
- </dl>
1859
-
1860
-
1861
-
1862
-
1863
-
1864
-
1865
-
1866
-
1867
-
1868
-
1869
-
1870
-
1871
-
1872
- <h5>Returns:</h5>
1873
-
1874
-
1875
- <div class="param-desc">
1876
- <p>a FileHound instance</p>
1877
- </div>
1878
-
1879
-
1880
-
1881
-
1882
-
1883
-
1884
- <h5>Example</h5>
1885
-
1886
- <pre class="prettyprint"><code>import FileHound from 'filehound';
1887
-
1888
- const filehound = FileHound.create();
1889
- filehound
1890
- .glob("*tmp*")
1891
- .find()
1892
- .each(console.log); // array of files names all containing 'tmp'</code></pre>
1893
-
1894
-
1895
-
1896
-
1897
-
1898
-
1899
-
1900
-
1901
- <h4 class="name" id="ignoreHiddenDirectories"><span class="type-signature"></span>ignoreHiddenDirectories<span class="signature">()</span><span class="type-signature"></span></h4>
1902
-
1903
-
1904
-
1905
-
1906
-
1907
- <div class="description">
1908
- <p>Ignore hidden directories</p>
1909
- </div>
1910
-
1911
-
1912
-
1913
-
1914
-
1915
-
1916
-
1917
-
1918
-
1919
-
1920
-
1921
-
1922
-
1923
- <dl class="details">
1924
-
1925
-
1926
-
1927
-
1928
-
1929
-
1930
-
1931
-
1932
-
1933
-
1934
-
1935
-
1936
-
1937
-
1938
-
1939
-
1940
-
1941
-
1942
-
1943
-
1944
-
1945
-
1946
-
1947
-
1948
-
1949
-
1950
- <dt class="tag-source">Source:</dt>
1951
- <dd class="tag-source"><ul class="dummy"><li>
1952
- <a href="filehound.js.html">filehound.js</a>, <a href="filehound.js.html#line419">line 419</a>
1953
- </li></ul></dd>
1954
-
1955
-
1956
-
1957
-
1958
-
1959
-
1960
-
1961
- </dl>
1962
-
1963
-
1964
-
1965
-
1966
-
1967
-
1968
-
1969
-
1970
-
1971
-
1972
-
1973
-
1974
-
1975
- <h5>Returns:</h5>
1976
-
1977
-
1978
- <div class="param-desc">
1979
- <p>a FileHound instance</p>
1980
- </div>
1981
-
1982
-
1983
-
1984
-
1985
-
1986
-
1987
- <h5>Example</h5>
1988
-
1989
- <pre class="prettyprint"><code>import FileHound from 'filehound';
1990
-
1991
- const filehound = FileHound.create();
1992
- filehound
1993
- .ignoreHiddenDirectories()
1994
- .find()
1995
- .each(console.log); // array of files names that are not hidden directories</code></pre>
1996
-
1997
-
1998
-
1999
-
2000
-
2001
-
2002
-
2003
-
2004
- <h4 class="name" id="ignoreHiddenFiles"><span class="type-signature"></span>ignoreHiddenFiles<span class="signature">()</span><span class="type-signature"></span></h4>
2005
-
2006
-
2007
-
2008
-
2009
-
2010
- <div class="description">
2011
- <p>Filter to ignore hidden files</p>
2012
- </div>
2013
-
2014
-
2015
-
2016
-
2017
-
2018
-
2019
-
2020
-
2021
-
2022
-
2023
-
2024
-
2025
-
2026
- <dl class="details">
2027
-
2028
-
2029
-
2030
-
2031
-
2032
-
2033
-
2034
-
2035
-
2036
-
2037
-
2038
-
2039
-
2040
-
2041
-
2042
-
2043
-
2044
-
2045
-
2046
-
2047
-
2048
-
2049
-
2050
-
2051
-
2052
-
2053
- <dt class="tag-source">Source:</dt>
2054
- <dd class="tag-source"><ul class="dummy"><li>
2055
- <a href="filehound.js.html">filehound.js</a>, <a href="filehound.js.html#line398">line 398</a>
2056
- </li></ul></dd>
2057
-
2058
-
2059
-
2060
-
2061
-
2062
-
2063
-
2064
- </dl>
2065
-
2066
-
2067
-
2068
-
2069
-
2070
-
2071
-
2072
-
2073
-
2074
-
2075
-
2076
-
2077
-
2078
- <h5>Returns:</h5>
2079
-
2080
-
2081
- <div class="param-desc">
2082
- <p>a FileHound instance</p>
2083
- </div>
2084
-
2085
-
2086
-
2087
-
2088
-
2089
-
2090
- <h5>Example</h5>
2091
-
2092
- <pre class="prettyprint"><code>import FileHound from 'filehound';
2093
-
2094
- const filehound = FileHound.create();
2095
- filehound
2096
- .ignoreHiddenFiles()
2097
- .find()
2098
- .each(console.log); // array of files names that are not hidden files</code></pre>
2099
-
2100
-
2101
-
2102
-
2103
-
2104
-
2105
-
2106
-
2107
- <h4 class="name" id="isEmpty"><span class="type-signature"></span>isEmpty<span class="signature">(path)</span><span class="type-signature"></span></h4>
2108
-
2109
-
2110
-
2111
-
2112
-
2113
- <div class="description">
2114
- <p>Filter by zero length files</p>
2115
- </div>
2116
-
2117
-
2118
-
2119
-
2120
-
2121
-
2122
-
2123
-
2124
-
2125
- <h5>Parameters:</h5>
2126
-
2127
-
2128
- <table class="params">
2129
- <thead>
2130
- <tr>
2131
-
2132
- <th>Name</th>
2133
-
2134
-
2135
- <th>Type</th>
2136
-
2137
-
2138
-
2139
-
2140
-
2141
- <th class="last">Description</th>
2142
- </tr>
2143
- </thead>
2144
-
2145
- <tbody>
2146
-
2147
-
2148
- <tr>
2149
-
2150
- <td class="name"><code>path</code></td>
2151
-
2152
-
2153
- <td class="type">
2154
-
2155
-
2156
- <span class="param-type">string</span>
2157
-
2158
-
2159
-
2160
- </td>
2161
-
2162
-
2163
-
2164
-
2165
-
2166
- <td class="description last"><p>path</p></td>
2167
- </tr>
2168
-
2169
-
2170
- </tbody>
2171
- </table>
2172
-
2173
-
2174
-
2175
-
2176
-
2177
-
2178
- <dl class="details">
2179
-
2180
-
2181
-
2182
-
2183
-
2184
-
2185
-
2186
-
2187
-
2188
-
2189
-
2190
-
2191
-
2192
-
2193
-
2194
-
2195
-
2196
-
2197
-
2198
-
2199
-
2200
-
2201
-
2202
-
2203
-
2204
-
2205
- <dt class="tag-source">Source:</dt>
2206
- <dd class="tag-source"><ul class="dummy"><li>
2207
- <a href="filehound.js.html">filehound.js</a>, <a href="filehound.js.html#line322">line 322</a>
2208
- </li></ul></dd>
2209
-
2210
-
2211
-
2212
-
2213
-
2214
-
2215
-
2216
- </dl>
2217
-
2218
-
2219
-
2220
-
2221
-
2222
-
2223
-
2224
-
2225
-
2226
-
2227
-
2228
-
2229
-
2230
- <h5>Returns:</h5>
2231
-
2232
-
2233
- <div class="param-desc">
2234
- <p>a FileHound instance</p>
2235
- </div>
2236
-
2237
-
2238
-
2239
-
2240
-
2241
-
2242
- <h5>Example</h5>
2243
-
2244
- <pre class="prettyprint"><code>import FileHound from 'filehound';
2245
-
2246
- const filehound = FileHound.create();
2247
- filehound
2248
- .size("&lt;10kb")
2249
- .find()
2250
- .each(console.log);</code></pre>
2251
-
2252
-
2253
-
2254
-
2255
-
2256
-
2257
-
2258
-
2259
- <h4 class="name" id="match"><span class="type-signature"></span>match<span class="signature">()</span><span class="type-signature"></span></h4>
2260
-
2261
-
2262
-
2263
-
2264
-
2265
- <div class="description">
2266
- <p>Same as glob</p>
2267
- </div>
2268
-
2269
-
2270
-
2271
-
2272
-
2273
-
2274
-
2275
-
2276
-
2277
-
2278
-
2279
-
2280
-
2281
- <dl class="details">
2282
-
2283
-
2284
-
2285
-
2286
-
2287
-
2288
-
2289
-
2290
-
2291
-
2292
-
2293
-
2294
-
2295
-
2296
-
2297
-
2298
-
2299
-
2300
-
2301
-
2302
-
2303
-
2304
-
2305
-
2306
-
2307
-
2308
- <dt class="tag-source">Source:</dt>
2309
- <dd class="tag-source"><ul class="dummy"><li>
2310
- <a href="filehound.js.html">filehound.js</a>, <a href="filehound.js.html#line370">line 370</a>
2311
- </li></ul></dd>
2312
-
2313
-
2314
-
2315
-
2316
-
2317
- <dt class="tag-see">See:</dt>
2318
- <dd class="tag-see">
2319
- <ul>
2320
- <li>glob</li>
2321
- </ul>
2322
- </dd>
2323
-
2324
-
2325
-
2326
- </dl>
2327
-
2328
-
2329
-
2330
-
2331
-
2332
-
2333
-
2334
-
2335
-
2336
-
2337
-
2338
-
2339
-
2340
-
2341
-
2342
-
2343
-
2344
-
2345
-
2346
-
2347
-
2348
- <h4 class="name" id="not"><span class="type-signature"></span>not<span class="signature">(glob)</span><span class="type-signature"></span></h4>
2349
-
2350
-
2351
-
2352
-
2353
-
2354
- <div class="description">
2355
- <p>Negates filters</p>
2356
- </div>
2357
-
2358
-
2359
-
2360
-
2361
-
2362
-
2363
-
2364
-
2365
-
2366
- <h5>Parameters:</h5>
2367
-
2368
-
2369
- <table class="params">
2370
- <thead>
2371
- <tr>
2372
-
2373
- <th>Name</th>
2374
-
2375
-
2376
- <th>Type</th>
2377
-
2378
-
2379
-
2380
-
2381
-
2382
- <th class="last">Description</th>
2383
- </tr>
2384
- </thead>
2385
-
2386
- <tbody>
2387
-
2388
-
2389
- <tr>
2390
-
2391
- <td class="name"><code>glob</code></td>
2392
-
2393
-
2394
- <td class="type">
2395
-
2396
-
2397
- <span class="param-type">string</span>
2398
-
2399
-
2400
-
2401
- </td>
2402
-
2403
-
2404
-
2405
-
2406
-
2407
- <td class="description last"><p>file glob</p></td>
2408
- </tr>
2409
-
2410
-
2411
- </tbody>
2412
- </table>
2413
-
2414
-
2415
-
2416
-
2417
-
2418
-
2419
- <dl class="details">
2420
-
2421
-
2422
-
2423
-
2424
-
2425
-
2426
-
2427
-
2428
-
2429
-
2430
-
2431
-
2432
-
2433
-
2434
-
2435
-
2436
-
2437
-
2438
-
2439
-
2440
-
2441
-
2442
-
2443
-
2444
-
2445
-
2446
- <dt class="tag-source">Source:</dt>
2447
- <dd class="tag-source"><ul class="dummy"><li>
2448
- <a href="filehound.js.html">filehound.js</a>, <a href="filehound.js.html#line374">line 374</a>
2449
- </li></ul></dd>
2450
-
2451
-
2452
-
2453
-
2454
-
2455
-
2456
-
2457
- </dl>
2458
-
2459
-
2460
-
2461
-
2462
-
2463
-
2464
-
2465
-
2466
-
2467
-
2468
-
2469
-
2470
-
2471
- <h5>Returns:</h5>
2472
-
2473
-
2474
- <div class="param-desc">
2475
- <p>a FileHound instance</p>
2476
- </div>
2477
-
2478
-
2479
-
2480
-
2481
-
2482
-
2483
- <h5>Example</h5>
2484
-
2485
- <pre class="prettyprint"><code>import FileHound from 'filehound';
2486
-
2487
- const filehound = FileHound.create();
2488
- filehound
2489
- .not()
2490
- .glob("*tmp*")
2491
- .find()
2492
- .each(console.log); // array of files names NOT containing 'tmp'</code></pre>
2493
-
2494
-
2495
-
2496
-
2497
-
2498
-
2499
-
2500
-
2501
- <h4 class="name" id="path"><span class="type-signature"></span>path<span class="signature">(path)</span><span class="type-signature"></span></h4>
2502
-
2503
-
2504
-
2505
-
2506
-
2507
- <div class="description">
2508
- <p>Define the search path</p>
2509
- </div>
2510
-
2511
-
2512
-
2513
-
2514
-
2515
-
2516
-
2517
-
2518
-
2519
- <h5>Parameters:</h5>
2520
-
2521
-
2522
- <table class="params">
2523
- <thead>
2524
- <tr>
2525
-
2526
- <th>Name</th>
2527
-
2528
-
2529
- <th>Type</th>
2530
-
2531
-
2532
-
2533
-
2534
-
2535
- <th class="last">Description</th>
2536
- </tr>
2537
- </thead>
2538
-
2539
- <tbody>
2540
-
2541
-
2542
- <tr>
2543
-
2544
- <td class="name"><code>path</code></td>
2545
-
2546
-
2547
- <td class="type">
2548
-
2549
-
2550
- <span class="param-type">string</span>
2551
-
2552
-
2553
-
2554
- </td>
2555
-
2556
-
2557
-
2558
-
2559
-
2560
- <td class="description last"><p>path</p></td>
2561
- </tr>
2562
-
2563
-
2564
- </tbody>
2565
- </table>
2566
-
2567
-
2568
-
2569
-
2570
-
2571
-
2572
- <dl class="details">
2573
-
2574
-
2575
-
2576
-
2577
-
2578
-
2579
-
2580
-
2581
-
2582
-
2583
-
2584
-
2585
-
2586
-
2587
-
2588
-
2589
-
2590
-
2591
-
2592
-
2593
-
2594
-
2595
-
2596
-
2597
-
2598
-
2599
- <dt class="tag-source">Source:</dt>
2600
- <dd class="tag-source"><ul class="dummy"><li>
2601
- <a href="filehound.js.html">filehound.js</a>, <a href="filehound.js.html#line212">line 212</a>
2602
- </li></ul></dd>
2603
-
2604
-
2605
-
2606
-
2607
-
2608
-
2609
-
2610
- </dl>
2611
-
2612
-
2613
-
2614
-
2615
-
2616
-
2617
-
2618
-
2619
-
2620
-
2621
-
2622
-
2623
-
2624
- <h5>Returns:</h5>
2625
-
2626
-
2627
- <div class="param-desc">
2628
- <p>a FileHound instance</p>
2629
- </div>
2630
-
2631
-
2632
-
2633
-
2634
-
2635
-
2636
- <h5>Example</h5>
2637
-
2638
- <pre class="prettyprint"><code>import FileHound from 'filehound';
2639
-
2640
- const filehound = FileHound.create();
2641
- filehound
2642
- .path("/tmp")
2643
- .find()
2644
- .each(console.log);</code></pre>
2645
-
2646
-
2647
-
2648
-
2649
-
2650
-
2651
-
2652
-
2653
- <h4 class="name" id="paths"><span class="type-signature"></span>paths<span class="signature">(path)</span><span class="type-signature"></span></h4>
2654
-
2655
-
2656
-
2657
-
2658
-
2659
- <div class="description">
2660
- <p>Defines the search paths</p>
2661
- </div>
2662
-
2663
-
2664
-
2665
-
2666
-
2667
-
2668
-
2669
-
2670
-
2671
- <h5>Parameters:</h5>
2672
-
2673
-
2674
- <table class="params">
2675
- <thead>
2676
- <tr>
2677
-
2678
- <th>Name</th>
2679
-
2680
-
2681
- <th>Type</th>
2682
-
2683
-
2684
-
2685
-
2686
-
2687
- <th class="last">Description</th>
2688
- </tr>
2689
- </thead>
2690
-
2691
- <tbody>
2692
-
2693
-
2694
- <tr>
2695
-
2696
- <td class="name"><code>path</code></td>
2697
-
2698
-
2699
- <td class="type">
2700
-
2701
-
2702
- <span class="param-type">array</span>
2703
-
2704
-
2705
-
2706
- </td>
2707
-
2708
-
2709
-
2710
-
2711
-
2712
- <td class="description last"><p>array of paths</p></td>
2713
- </tr>
2714
-
2715
-
2716
- </tbody>
2717
- </table>
2718
-
2719
-
2720
-
2721
-
2722
-
2723
-
2724
- <dl class="details">
2725
-
2726
-
2727
-
2728
-
2729
-
2730
-
2731
-
2732
-
2733
-
2734
-
2735
-
2736
-
2737
-
2738
-
2739
-
2740
-
2741
-
2742
-
2743
-
2744
-
2745
-
2746
-
2747
-
2748
-
2749
-
2750
-
2751
- <dt class="tag-source">Source:</dt>
2752
- <dd class="tag-source"><ul class="dummy"><li>
2753
- <a href="filehound.js.html">filehound.js</a>, <a href="filehound.js.html#line189">line 189</a>
2754
- </li></ul></dd>
2755
-
2756
-
2757
-
2758
-
2759
-
2760
-
2761
-
2762
- </dl>
2763
-
2764
-
2765
-
2766
-
2767
-
2768
-
2769
-
2770
-
2771
-
2772
-
2773
-
2774
-
2775
-
2776
- <h5>Returns:</h5>
2777
-
2778
-
2779
- <div class="param-desc">
2780
- <p>a FileHound instance</p>
2781
- </div>
2782
-
2783
-
2784
-
2785
-
2786
-
2787
-
2788
- <h5>Example</h5>
2789
-
2790
- <pre class="prettyprint"><code>import FileHound from 'filehound';
2791
-
2792
- const filehound = FileHound.create();
2793
- filehound
2794
- .paths("/tmp", "/etc") // or ["/tmp", "/etc"]
2795
- .find()
2796
- .each(console.log);</code></pre>
2797
-
2798
-
2799
-
2800
-
2801
-
2802
-
2803
-
2804
-
2805
- <h4 class="name" id="size"><span class="type-signature"></span>size<span class="signature">(sizeExpression)</span><span class="type-signature"></span></h4>
2806
-
2807
-
2808
-
2809
-
2810
-
2811
- <div class="description">
2812
- <p>Filter by file size</p>
2813
- </div>
2814
-
2815
-
2816
-
2817
-
2818
-
2819
-
2820
-
2821
-
2822
-
2823
- <h5>Parameters:</h5>
2824
-
2825
-
2826
- <table class="params">
2827
- <thead>
2828
- <tr>
2829
-
2830
- <th>Name</th>
2831
-
2832
-
2833
- <th>Type</th>
2834
-
2835
-
2836
-
2837
-
2838
-
2839
- <th class="last">Description</th>
2840
- </tr>
2841
- </thead>
2842
-
2843
- <tbody>
2844
-
2845
-
2846
- <tr>
2847
-
2848
- <td class="name"><code>sizeExpression</code></td>
2849
-
2850
-
2851
- <td class="type">
2852
-
2853
-
2854
- <span class="param-type">string</span>
2855
-
2856
-
2857
-
2858
- </td>
2859
-
2860
-
2861
-
2862
-
2863
-
2864
- <td class="description last"><p>a size expression</p></td>
2865
- </tr>
2866
-
2867
-
2868
- </tbody>
2869
- </table>
2870
-
2871
-
2872
-
2873
-
2874
-
2875
-
2876
- <dl class="details">
2877
-
2878
-
2879
-
2880
-
2881
-
2882
-
2883
-
2884
-
2885
-
2886
-
2887
-
2888
-
2889
-
2890
-
2891
-
2892
-
2893
-
2894
-
2895
-
2896
-
2897
-
2898
-
2899
-
2900
-
2901
-
2902
-
2903
- <dt class="tag-source">Source:</dt>
2904
- <dd class="tag-source"><ul class="dummy"><li>
2905
- <a href="filehound.js.html">filehound.js</a>, <a href="filehound.js.html#line297">line 297</a>
2906
- </li></ul></dd>
2907
-
2908
-
2909
-
2910
-
2911
-
2912
-
2913
-
2914
- </dl>
2915
-
2916
-
2917
-
2918
-
2919
-
2920
-
2921
-
2922
-
2923
-
2924
-
2925
-
2926
-
2927
-
2928
- <h5>Returns:</h5>
2929
-
2930
-
2931
- <div class="param-desc">
2932
- <p>a FileHound instance</p>
2933
- </div>
2934
-
2935
-
2936
-
2937
-
2938
-
2939
-
2940
- <h5>Example</h5>
2941
-
2942
- <pre class="prettyprint"><code>import FileHound from 'filehound';
2943
-
2944
- const filehound = FileHound.create();
2945
- filehound
2946
- .size("&lt;10kb")
2947
- .find()
2948
- .each(console.log);</code></pre>
2949
-
2950
-
2951
-
2952
-
2953
-
2954
-
2955
-
2956
-
2957
- <h4 class="name" id="socket"><span class="type-signature"></span>socket<span class="signature">()</span><span class="type-signature"></span></h4>
2958
-
2959
-
2960
-
2961
-
2962
-
2963
- <div class="description">
2964
- <p>Find sockets</p>
2965
- </div>
2966
-
2967
-
2968
-
2969
-
2970
-
2971
-
2972
-
2973
-
2974
-
2975
-
2976
-
2977
-
2978
-
2979
- <dl class="details">
2980
-
2981
-
2982
-
2983
-
2984
-
2985
-
2986
-
2987
-
2988
-
2989
-
2990
-
2991
-
2992
-
2993
-
2994
-
2995
-
2996
-
2997
-
2998
-
2999
-
3000
-
3001
-
3002
-
3003
-
3004
-
3005
-
3006
- <dt class="tag-source">Source:</dt>
3007
- <dd class="tag-source"><ul class="dummy"><li>
3008
- <a href="filehound.js.html">filehound.js</a>, <a href="filehound.js.html#line463">line 463</a>
3009
- </li></ul></dd>
3010
-
3011
-
3012
-
3013
-
3014
-
3015
-
3016
-
3017
- </dl>
3018
-
3019
-
3020
-
3021
-
3022
-
3023
-
3024
-
3025
-
3026
-
3027
-
3028
-
3029
-
3030
-
3031
- <h5>Returns:</h5>
3032
-
3033
-
3034
- <div class="param-desc">
3035
- <p>a FileHound instance</p>
3036
- </div>
3037
-
3038
-
3039
-
3040
-
3041
-
3042
-
3043
- <h5>Example</h5>
3044
-
3045
- <pre class="prettyprint"><code>import FileHound from 'filehound';
3046
-
3047
- const filehound = FileHound.create();
3048
- filehound
3049
- .socket()
3050
- .find()
3051
- .each(console.log); // array of matching sockets</code></pre>
3052
-
3053
-
3054
-
3055
-
3056
-
3057
-
3058
-
3059
-
3060
-
3061
- </article>
3062
-
3063
- </section>
3064
-
3065
-
3066
-
3067
-
3068
- </div>
3069
-
3070
- <br class="clear">
3071
-
3072
- <footer>
3073
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Fri Jan 05 2018 11:12:21 GMT+0000 (GMT) using the Minami theme.
3074
- </footer>
3075
-
3076
- <script>prettyPrint();</script>
3077
- <script src="scripts/linenumber.js"></script>
3078
- </body>
3079
- </html>