@gradientedge/cdk-utils 8.32.0 → 8.34.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 (352) hide show
  1. package/app/api-destined-function/layers/nodejs/node_modules/.yarn-integrity +15 -17
  2. package/app/api-destined-function/layers/nodejs/package.json +3 -3
  3. package/app/api-destined-function/node_modules/.yarn-integrity +296 -53
  4. package/app/api-destined-function/node_modules/@types/uuid/README.md +1 -1
  5. package/app/api-destined-function/node_modules/@types/uuid/index.d.ts +1 -1
  6. package/app/api-destined-function/node_modules/@types/uuid/package.json +3 -3
  7. package/app/api-destined-function/node_modules/brace-expansion/README.md +6 -0
  8. package/app/api-destined-function/node_modules/brace-expansion/index.js +86 -84
  9. package/app/api-destined-function/node_modules/brace-expansion/package.json +3 -4
  10. package/app/api-destined-function/node_modules/glob/LICENSE +1 -7
  11. package/app/api-destined-function/node_modules/glob/README.md +992 -284
  12. package/app/api-destined-function/node_modules/glob/dist/cjs/glob.d.ts +328 -0
  13. package/app/api-destined-function/node_modules/glob/dist/cjs/glob.d.ts.map +1 -0
  14. package/app/api-destined-function/node_modules/glob/dist/cjs/glob.js +228 -0
  15. package/app/api-destined-function/node_modules/glob/dist/cjs/glob.js.map +1 -0
  16. package/app/api-destined-function/node_modules/glob/dist/cjs/has-magic.d.ts +14 -0
  17. package/app/api-destined-function/node_modules/glob/dist/cjs/has-magic.d.ts.map +1 -0
  18. package/app/api-destined-function/node_modules/glob/dist/cjs/has-magic.js +27 -0
  19. package/app/api-destined-function/node_modules/glob/dist/cjs/has-magic.js.map +1 -0
  20. package/app/api-destined-function/node_modules/glob/dist/cjs/ignore.d.ts +20 -0
  21. package/app/api-destined-function/node_modules/glob/dist/cjs/ignore.d.ts.map +1 -0
  22. package/app/api-destined-function/node_modules/glob/dist/cjs/ignore.js +103 -0
  23. package/app/api-destined-function/node_modules/glob/dist/cjs/ignore.js.map +1 -0
  24. package/app/api-destined-function/node_modules/glob/dist/cjs/index-cjs.d.ts +75 -0
  25. package/app/api-destined-function/node_modules/glob/dist/cjs/index-cjs.d.ts.map +1 -0
  26. package/app/api-destined-function/node_modules/glob/dist/cjs/index-cjs.js +7 -0
  27. package/app/api-destined-function/node_modules/glob/dist/cjs/index-cjs.js.map +1 -0
  28. package/app/api-destined-function/node_modules/glob/dist/cjs/index.d.ts +96 -0
  29. package/app/api-destined-function/node_modules/glob/dist/cjs/index.d.ts.map +1 -0
  30. package/app/api-destined-function/node_modules/glob/dist/cjs/index.js +68 -0
  31. package/app/api-destined-function/node_modules/glob/dist/cjs/index.js.map +1 -0
  32. package/app/api-destined-function/node_modules/glob/dist/cjs/package.json +3 -0
  33. package/app/api-destined-function/node_modules/glob/dist/cjs/pattern.d.ts +77 -0
  34. package/app/api-destined-function/node_modules/glob/dist/cjs/pattern.d.ts.map +1 -0
  35. package/app/api-destined-function/node_modules/glob/dist/cjs/pattern.js +219 -0
  36. package/app/api-destined-function/node_modules/glob/dist/cjs/pattern.js.map +1 -0
  37. package/app/api-destined-function/node_modules/glob/dist/cjs/processor.d.ts +59 -0
  38. package/app/api-destined-function/node_modules/glob/dist/cjs/processor.d.ts.map +1 -0
  39. package/app/api-destined-function/node_modules/glob/dist/cjs/processor.js +309 -0
  40. package/app/api-destined-function/node_modules/glob/dist/cjs/processor.js.map +1 -0
  41. package/app/api-destined-function/node_modules/glob/dist/cjs/walker.d.ts +95 -0
  42. package/app/api-destined-function/node_modules/glob/dist/cjs/walker.d.ts.map +1 -0
  43. package/app/api-destined-function/node_modules/glob/dist/cjs/walker.js +360 -0
  44. package/app/api-destined-function/node_modules/glob/dist/cjs/walker.js.map +1 -0
  45. package/app/api-destined-function/node_modules/glob/dist/mjs/glob.d.ts +328 -0
  46. package/app/api-destined-function/node_modules/glob/dist/mjs/glob.d.ts.map +1 -0
  47. package/app/api-destined-function/node_modules/glob/dist/mjs/glob.js +224 -0
  48. package/app/api-destined-function/node_modules/glob/dist/mjs/glob.js.map +1 -0
  49. package/app/api-destined-function/node_modules/glob/dist/mjs/has-magic.d.ts +14 -0
  50. package/app/api-destined-function/node_modules/glob/dist/mjs/has-magic.d.ts.map +1 -0
  51. package/app/api-destined-function/node_modules/glob/dist/mjs/has-magic.js +23 -0
  52. package/app/api-destined-function/node_modules/glob/dist/mjs/has-magic.js.map +1 -0
  53. package/app/api-destined-function/node_modules/glob/dist/mjs/ignore.d.ts +20 -0
  54. package/app/api-destined-function/node_modules/glob/dist/mjs/ignore.d.ts.map +1 -0
  55. package/app/api-destined-function/node_modules/glob/dist/mjs/ignore.js +99 -0
  56. package/app/api-destined-function/node_modules/glob/dist/mjs/ignore.js.map +1 -0
  57. package/app/api-destined-function/node_modules/glob/dist/mjs/index.d.ts +96 -0
  58. package/app/api-destined-function/node_modules/glob/dist/mjs/index.d.ts.map +1 -0
  59. package/app/api-destined-function/node_modules/glob/dist/mjs/index.js +55 -0
  60. package/app/api-destined-function/node_modules/glob/dist/mjs/index.js.map +1 -0
  61. package/app/api-destined-function/node_modules/glob/dist/mjs/package.json +3 -0
  62. package/app/api-destined-function/node_modules/glob/dist/mjs/pattern.d.ts +77 -0
  63. package/app/api-destined-function/node_modules/glob/dist/mjs/pattern.d.ts.map +1 -0
  64. package/app/api-destined-function/node_modules/glob/dist/mjs/pattern.js +215 -0
  65. package/app/api-destined-function/node_modules/glob/dist/mjs/pattern.js.map +1 -0
  66. package/app/api-destined-function/node_modules/glob/dist/mjs/processor.d.ts +59 -0
  67. package/app/api-destined-function/node_modules/glob/dist/mjs/processor.d.ts.map +1 -0
  68. package/app/api-destined-function/node_modules/glob/dist/mjs/processor.js +302 -0
  69. package/app/api-destined-function/node_modules/glob/dist/mjs/processor.js.map +1 -0
  70. package/app/api-destined-function/node_modules/glob/dist/mjs/walker.d.ts +95 -0
  71. package/app/api-destined-function/node_modules/glob/dist/mjs/walker.d.ts.map +1 -0
  72. package/app/api-destined-function/node_modules/glob/dist/mjs/walker.js +351 -0
  73. package/app/api-destined-function/node_modules/glob/dist/mjs/walker.js.map +1 -0
  74. package/app/api-destined-function/node_modules/glob/package.json +76 -30
  75. package/app/api-destined-function/node_modules/{inflight → lru-cache}/LICENSE +1 -1
  76. package/app/api-destined-function/node_modules/lru-cache/README.md +1117 -0
  77. package/app/api-destined-function/node_modules/lru-cache/index.d.ts +869 -0
  78. package/app/api-destined-function/node_modules/lru-cache/index.js +1227 -0
  79. package/app/api-destined-function/node_modules/lru-cache/index.mjs +1227 -0
  80. package/app/api-destined-function/node_modules/lru-cache/package.json +96 -0
  81. package/app/api-destined-function/node_modules/minimatch/LICENSE +1 -1
  82. package/app/api-destined-function/node_modules/minimatch/README.md +305 -55
  83. package/app/api-destined-function/node_modules/minimatch/dist/cjs/brace-expressions.d.ts +8 -0
  84. package/app/api-destined-function/node_modules/minimatch/dist/cjs/brace-expressions.d.ts.map +1 -0
  85. package/app/api-destined-function/node_modules/minimatch/dist/cjs/brace-expressions.js +152 -0
  86. package/app/api-destined-function/node_modules/minimatch/dist/cjs/brace-expressions.js.map +1 -0
  87. package/app/api-destined-function/node_modules/minimatch/dist/cjs/escape.d.ts +12 -0
  88. package/app/api-destined-function/node_modules/minimatch/dist/cjs/escape.d.ts.map +1 -0
  89. package/app/api-destined-function/node_modules/minimatch/dist/cjs/escape.js +22 -0
  90. package/app/api-destined-function/node_modules/minimatch/dist/cjs/escape.js.map +1 -0
  91. package/app/api-destined-function/node_modules/minimatch/dist/cjs/index-cjs.d.ts +42 -0
  92. package/app/api-destined-function/node_modules/minimatch/dist/cjs/index-cjs.d.ts.map +1 -0
  93. package/app/api-destined-function/node_modules/minimatch/dist/cjs/index-cjs.js +7 -0
  94. package/app/api-destined-function/node_modules/minimatch/dist/cjs/index-cjs.js.map +1 -0
  95. package/app/api-destined-function/node_modules/minimatch/dist/cjs/index.d.ts +92 -0
  96. package/app/api-destined-function/node_modules/minimatch/dist/cjs/index.d.ts.map +1 -0
  97. package/app/api-destined-function/node_modules/minimatch/dist/cjs/index.js +1304 -0
  98. package/app/api-destined-function/node_modules/minimatch/dist/cjs/index.js.map +1 -0
  99. package/app/api-destined-function/node_modules/minimatch/dist/cjs/package.json +3 -0
  100. package/app/api-destined-function/node_modules/minimatch/dist/cjs/unescape.d.ts +17 -0
  101. package/app/api-destined-function/node_modules/minimatch/dist/cjs/unescape.d.ts.map +1 -0
  102. package/app/api-destined-function/node_modules/minimatch/dist/cjs/unescape.js +24 -0
  103. package/app/api-destined-function/node_modules/minimatch/dist/cjs/unescape.js.map +1 -0
  104. package/app/api-destined-function/node_modules/minimatch/dist/mjs/brace-expressions.d.ts +8 -0
  105. package/app/api-destined-function/node_modules/minimatch/dist/mjs/brace-expressions.d.ts.map +1 -0
  106. package/app/api-destined-function/node_modules/minimatch/dist/mjs/brace-expressions.js +148 -0
  107. package/app/api-destined-function/node_modules/minimatch/dist/mjs/brace-expressions.js.map +1 -0
  108. package/app/api-destined-function/node_modules/minimatch/dist/mjs/escape.d.ts +12 -0
  109. package/app/api-destined-function/node_modules/minimatch/dist/mjs/escape.d.ts.map +1 -0
  110. package/app/api-destined-function/node_modules/minimatch/dist/mjs/escape.js +18 -0
  111. package/app/api-destined-function/node_modules/minimatch/dist/mjs/escape.js.map +1 -0
  112. package/app/api-destined-function/node_modules/minimatch/dist/mjs/index.d.ts +92 -0
  113. package/app/api-destined-function/node_modules/minimatch/dist/mjs/index.d.ts.map +1 -0
  114. package/app/api-destined-function/node_modules/minimatch/dist/mjs/index.js +1289 -0
  115. package/app/api-destined-function/node_modules/minimatch/dist/mjs/index.js.map +1 -0
  116. package/app/api-destined-function/node_modules/minimatch/dist/mjs/package.json +3 -0
  117. package/app/api-destined-function/node_modules/minimatch/dist/mjs/unescape.d.ts +17 -0
  118. package/app/api-destined-function/node_modules/minimatch/dist/mjs/unescape.d.ts.map +1 -0
  119. package/app/api-destined-function/node_modules/minimatch/dist/mjs/unescape.js +20 -0
  120. package/app/api-destined-function/node_modules/minimatch/dist/mjs/unescape.js.map +1 -0
  121. package/app/api-destined-function/node_modules/minimatch/package.json +67 -11
  122. package/app/api-destined-function/node_modules/{once → minipass}/LICENSE +1 -1
  123. package/app/api-destined-function/node_modules/minipass/README.md +769 -0
  124. package/app/api-destined-function/node_modules/minipass/index.d.ts +150 -0
  125. package/app/api-destined-function/node_modules/minipass/index.js +702 -0
  126. package/app/api-destined-function/node_modules/minipass/index.mjs +702 -0
  127. package/app/api-destined-function/node_modules/minipass/package.json +76 -0
  128. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/package.json +4 -3
  129. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/bin.d.ts +1 -0
  130. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/bin.d.ts.map +1 -0
  131. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/bin.js +7 -0
  132. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/bin.js.map +1 -1
  133. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/find-made.d.ts +1 -0
  134. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/find-made.d.ts.map +1 -0
  135. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/index-cjs.d.ts +1 -0
  136. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/index-cjs.d.ts.map +1 -0
  137. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/index.d.ts +1 -0
  138. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/index.d.ts.map +1 -0
  139. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/mkdirp-manual.d.ts +1 -0
  140. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/mkdirp-manual.d.ts.map +1 -0
  141. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/mkdirp-native.d.ts +1 -0
  142. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/mkdirp-native.d.ts.map +1 -0
  143. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/opts-arg.d.ts +1 -0
  144. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/opts-arg.d.ts.map +1 -0
  145. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/path-arg.d.ts +1 -0
  146. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/path-arg.d.ts.map +1 -0
  147. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/use-native.d.ts +1 -0
  148. package/app/api-destined-function/node_modules/mkdirp/dist/cjs/src/use-native.d.ts.map +1 -0
  149. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/find-made.d.ts +1 -0
  150. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/find-made.d.ts.map +1 -0
  151. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/index.d.ts +1 -0
  152. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/index.d.ts.map +1 -0
  153. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/mkdirp-manual.d.ts +1 -0
  154. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/mkdirp-manual.d.ts.map +1 -0
  155. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/mkdirp-native.d.ts +1 -0
  156. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/mkdirp-native.d.ts.map +1 -0
  157. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/opts-arg.d.ts +1 -0
  158. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/opts-arg.d.ts.map +1 -0
  159. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/path-arg.d.ts +1 -0
  160. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/path-arg.d.ts.map +1 -0
  161. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/use-native.d.ts +1 -0
  162. package/app/api-destined-function/node_modules/mkdirp/dist/mjs/use-native.d.ts.map +1 -0
  163. package/app/api-destined-function/node_modules/mkdirp/package.json +4 -3
  164. package/app/api-destined-function/node_modules/path-scurry/LICENSE.md +55 -0
  165. package/app/api-destined-function/node_modules/path-scurry/README.md +559 -0
  166. package/app/api-destined-function/node_modules/path-scurry/dist/cjs/index.d.ts +1055 -0
  167. package/app/api-destined-function/node_modules/path-scurry/dist/cjs/index.d.ts.map +1 -0
  168. package/app/api-destined-function/node_modules/path-scurry/dist/cjs/index.js +1865 -0
  169. package/app/api-destined-function/node_modules/path-scurry/dist/cjs/index.js.map +1 -0
  170. package/app/api-destined-function/node_modules/path-scurry/dist/cjs/package.json +3 -0
  171. package/app/api-destined-function/node_modules/path-scurry/dist/mjs/index.d.ts +1055 -0
  172. package/app/api-destined-function/node_modules/path-scurry/dist/mjs/index.d.ts.map +1 -0
  173. package/app/api-destined-function/node_modules/path-scurry/dist/mjs/index.js +1827 -0
  174. package/app/api-destined-function/node_modules/path-scurry/dist/mjs/index.js.map +1 -0
  175. package/app/api-destined-function/node_modules/path-scurry/dist/mjs/package.json +3 -0
  176. package/app/api-destined-function/node_modules/path-scurry/package.json +87 -0
  177. package/app/api-destined-function/node_modules/rimraf/LICENSE +1 -1
  178. package/app/api-destined-function/node_modules/rimraf/README.md +185 -72
  179. package/app/api-destined-function/node_modules/rimraf/dist/cjs/package.json +84 -0
  180. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/bin.d.ts +8 -0
  181. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/bin.d.ts.map +1 -0
  182. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/bin.js +260 -0
  183. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/bin.js.map +1 -0
  184. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/default-tmp.d.ts +3 -0
  185. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/default-tmp.d.ts.map +1 -0
  186. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/default-tmp.js +61 -0
  187. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/default-tmp.js.map +1 -0
  188. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/fix-eperm.d.ts +3 -0
  189. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/fix-eperm.d.ts.map +1 -0
  190. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/fix-eperm.js +58 -0
  191. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/fix-eperm.js.map +1 -0
  192. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/fs.d.ts +17 -0
  193. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/fs.d.ts.map +1 -0
  194. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/fs.js +46 -0
  195. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/fs.js.map +1 -0
  196. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/ignore-enoent.d.ts +3 -0
  197. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/ignore-enoent.d.ts.map +1 -0
  198. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/ignore-enoent.js +21 -0
  199. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/ignore-enoent.js.map +1 -0
  200. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/index-cjs.d.ts +57 -0
  201. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/index-cjs.d.ts.map +1 -0
  202. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/index-cjs.js +7 -0
  203. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/index-cjs.js.map +1 -0
  204. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/index.d.ts +71 -0
  205. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/index.d.ts.map +1 -0
  206. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/index.js +92 -0
  207. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/index.js.map +1 -0
  208. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/opt-arg.d.ts +17 -0
  209. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/opt-arg.d.ts.map +1 -0
  210. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/opt-arg.js +36 -0
  211. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/opt-arg.js.map +1 -0
  212. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/path-arg.d.ts +4 -0
  213. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/path-arg.d.ts.map +1 -0
  214. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/path-arg.js +54 -0
  215. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/path-arg.js.map +1 -0
  216. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/platform.d.ts +3 -0
  217. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/platform.d.ts.map +1 -0
  218. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/platform.js +4 -0
  219. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/platform.js.map +1 -0
  220. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/readdir-or-error.d.ts +5 -0
  221. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/readdir-or-error.d.ts.map +1 -0
  222. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/readdir-or-error.js +19 -0
  223. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/readdir-or-error.js.map +1 -0
  224. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/retry-busy.d.ts +8 -0
  225. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/retry-busy.d.ts.map +1 -0
  226. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/retry-busy.js +68 -0
  227. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/retry-busy.js.map +1 -0
  228. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-manual.d.ts +3 -0
  229. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-manual.d.ts.map +1 -0
  230. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-manual.js +12 -0
  231. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-manual.js.map +1 -0
  232. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-move-remove.d.ts +4 -0
  233. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-move-remove.d.ts.map +1 -0
  234. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-move-remove.js +192 -0
  235. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-move-remove.js.map +1 -0
  236. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-native.d.ts +4 -0
  237. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-native.d.ts.map +1 -0
  238. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-native.js +24 -0
  239. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-native.js.map +1 -0
  240. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-posix.d.ts +4 -0
  241. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-posix.d.ts.map +1 -0
  242. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-posix.js +123 -0
  243. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-posix.js.map +1 -0
  244. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-windows.d.ts +4 -0
  245. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-windows.d.ts.map +1 -0
  246. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-windows.js +182 -0
  247. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/rimraf-windows.js.map +1 -0
  248. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/use-native.d.ts +4 -0
  249. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/use-native.d.ts.map +1 -0
  250. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/use-native.js +19 -0
  251. package/app/api-destined-function/node_modules/rimraf/dist/cjs/src/use-native.js.map +1 -0
  252. package/app/api-destined-function/node_modules/rimraf/dist/mjs/default-tmp.d.ts +3 -0
  253. package/app/api-destined-function/node_modules/rimraf/dist/mjs/default-tmp.d.ts.map +1 -0
  254. package/app/api-destined-function/node_modules/rimraf/dist/mjs/default-tmp.js +55 -0
  255. package/app/api-destined-function/node_modules/rimraf/dist/mjs/default-tmp.js.map +1 -0
  256. package/app/api-destined-function/node_modules/rimraf/dist/mjs/fix-eperm.d.ts +3 -0
  257. package/app/api-destined-function/node_modules/rimraf/dist/mjs/fix-eperm.d.ts.map +1 -0
  258. package/app/api-destined-function/node_modules/rimraf/dist/mjs/fix-eperm.js +53 -0
  259. package/app/api-destined-function/node_modules/rimraf/dist/mjs/fix-eperm.js.map +1 -0
  260. package/app/api-destined-function/node_modules/rimraf/dist/mjs/fs.d.ts +17 -0
  261. package/app/api-destined-function/node_modules/rimraf/dist/mjs/fs.d.ts.map +1 -0
  262. package/app/api-destined-function/node_modules/rimraf/dist/mjs/fs.js +31 -0
  263. package/app/api-destined-function/node_modules/rimraf/dist/mjs/fs.js.map +1 -0
  264. package/app/api-destined-function/node_modules/rimraf/dist/mjs/ignore-enoent.d.ts +3 -0
  265. package/app/api-destined-function/node_modules/rimraf/dist/mjs/ignore-enoent.d.ts.map +1 -0
  266. package/app/api-destined-function/node_modules/rimraf/dist/mjs/ignore-enoent.js +16 -0
  267. package/app/api-destined-function/node_modules/rimraf/dist/mjs/ignore-enoent.js.map +1 -0
  268. package/app/api-destined-function/node_modules/rimraf/dist/mjs/index.d.ts +71 -0
  269. package/app/api-destined-function/node_modules/rimraf/dist/mjs/index.d.ts.map +1 -0
  270. package/app/api-destined-function/node_modules/rimraf/dist/mjs/index.js +84 -0
  271. package/app/api-destined-function/node_modules/rimraf/dist/mjs/index.js.map +1 -0
  272. package/app/api-destined-function/node_modules/rimraf/dist/mjs/opt-arg.d.ts +17 -0
  273. package/app/api-destined-function/node_modules/rimraf/dist/mjs/opt-arg.d.ts.map +1 -0
  274. package/app/api-destined-function/node_modules/rimraf/dist/mjs/opt-arg.js +31 -0
  275. package/app/api-destined-function/node_modules/rimraf/dist/mjs/opt-arg.js.map +1 -0
  276. package/app/api-destined-function/node_modules/rimraf/dist/mjs/package.json +4 -0
  277. package/app/api-destined-function/node_modules/rimraf/dist/mjs/path-arg.d.ts +4 -0
  278. package/app/api-destined-function/node_modules/rimraf/dist/mjs/path-arg.d.ts.map +1 -0
  279. package/app/api-destined-function/node_modules/rimraf/dist/mjs/path-arg.js +49 -0
  280. package/app/api-destined-function/node_modules/rimraf/dist/mjs/path-arg.js.map +1 -0
  281. package/app/api-destined-function/node_modules/rimraf/dist/mjs/platform.d.ts +3 -0
  282. package/app/api-destined-function/node_modules/rimraf/dist/mjs/platform.d.ts.map +1 -0
  283. package/app/api-destined-function/node_modules/rimraf/dist/mjs/platform.js +2 -0
  284. package/app/api-destined-function/node_modules/rimraf/dist/mjs/platform.js.map +1 -0
  285. package/app/api-destined-function/node_modules/rimraf/dist/mjs/readdir-or-error.d.ts +5 -0
  286. package/app/api-destined-function/node_modules/rimraf/dist/mjs/readdir-or-error.d.ts.map +1 -0
  287. package/app/api-destined-function/node_modules/rimraf/dist/mjs/readdir-or-error.js +14 -0
  288. package/app/api-destined-function/node_modules/rimraf/dist/mjs/readdir-or-error.js.map +1 -0
  289. package/app/api-destined-function/node_modules/rimraf/dist/mjs/retry-busy.d.ts +8 -0
  290. package/app/api-destined-function/node_modules/rimraf/dist/mjs/retry-busy.d.ts.map +1 -0
  291. package/app/api-destined-function/node_modules/rimraf/dist/mjs/retry-busy.js +63 -0
  292. package/app/api-destined-function/node_modules/rimraf/dist/mjs/retry-busy.js.map +1 -0
  293. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-manual.d.ts +3 -0
  294. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-manual.d.ts.map +1 -0
  295. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-manual.js +6 -0
  296. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-manual.js.map +1 -0
  297. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-move-remove.d.ts +4 -0
  298. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-move-remove.d.ts.map +1 -0
  299. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-move-remove.js +187 -0
  300. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-move-remove.js.map +1 -0
  301. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-native.d.ts +4 -0
  302. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-native.d.ts.map +1 -0
  303. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-native.js +19 -0
  304. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-native.js.map +1 -0
  305. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-posix.d.ts +4 -0
  306. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-posix.d.ts.map +1 -0
  307. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-posix.js +118 -0
  308. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-posix.js.map +1 -0
  309. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-windows.d.ts +4 -0
  310. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-windows.d.ts.map +1 -0
  311. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-windows.js +177 -0
  312. package/app/api-destined-function/node_modules/rimraf/dist/mjs/rimraf-windows.js.map +1 -0
  313. package/app/api-destined-function/node_modules/rimraf/dist/mjs/use-native.d.ts +4 -0
  314. package/app/api-destined-function/node_modules/rimraf/dist/mjs/use-native.d.ts.map +1 -0
  315. package/app/api-destined-function/node_modules/rimraf/dist/mjs/use-native.js +13 -0
  316. package/app/api-destined-function/node_modules/rimraf/dist/mjs/use-native.js.map +1 -0
  317. package/app/api-destined-function/node_modules/rimraf/package.json +67 -15
  318. package/app/api-destined-function/package.json +3 -3
  319. package/dist/src/lib/common/stack.js +1 -1
  320. package/package.json +11 -11
  321. package/src/lib/common/stack.ts +1 -1
  322. package/app/api-destined-function/node_modules/concat-map/.travis.yml +0 -4
  323. package/app/api-destined-function/node_modules/concat-map/LICENSE +0 -18
  324. package/app/api-destined-function/node_modules/concat-map/README.markdown +0 -62
  325. package/app/api-destined-function/node_modules/concat-map/example/map.js +0 -6
  326. package/app/api-destined-function/node_modules/concat-map/index.js +0 -13
  327. package/app/api-destined-function/node_modules/concat-map/package.json +0 -43
  328. package/app/api-destined-function/node_modules/glob/common.js +0 -236
  329. package/app/api-destined-function/node_modules/glob/glob.js +0 -787
  330. package/app/api-destined-function/node_modules/glob/sync.js +0 -483
  331. package/app/api-destined-function/node_modules/inflight/README.md +0 -37
  332. package/app/api-destined-function/node_modules/inflight/inflight.js +0 -54
  333. package/app/api-destined-function/node_modules/inflight/package.json +0 -29
  334. package/app/api-destined-function/node_modules/inherits/LICENSE +0 -16
  335. package/app/api-destined-function/node_modules/inherits/README.md +0 -42
  336. package/app/api-destined-function/node_modules/inherits/inherits.js +0 -9
  337. package/app/api-destined-function/node_modules/inherits/inherits_browser.js +0 -27
  338. package/app/api-destined-function/node_modules/inherits/package.json +0 -29
  339. package/app/api-destined-function/node_modules/minimatch/minimatch.js +0 -952
  340. package/app/api-destined-function/node_modules/once/README.md +0 -79
  341. package/app/api-destined-function/node_modules/once/once.js +0 -42
  342. package/app/api-destined-function/node_modules/once/package.json +0 -33
  343. package/app/api-destined-function/node_modules/path-is-absolute/index.js +0 -20
  344. package/app/api-destined-function/node_modules/path-is-absolute/license +0 -21
  345. package/app/api-destined-function/node_modules/path-is-absolute/package.json +0 -43
  346. package/app/api-destined-function/node_modules/path-is-absolute/readme.md +0 -59
  347. package/app/api-destined-function/node_modules/rimraf/bin.js +0 -68
  348. package/app/api-destined-function/node_modules/rimraf/rimraf.js +0 -360
  349. package/app/api-destined-function/node_modules/wrappy/LICENSE +0 -15
  350. package/app/api-destined-function/node_modules/wrappy/README.md +0 -36
  351. package/app/api-destined-function/node_modules/wrappy/package.json +0 -29
  352. package/app/api-destined-function/node_modules/wrappy/wrappy.js +0 -33
@@ -1,13 +1,12 @@
1
1
  # Glob
2
2
 
3
- Match files using the patterns the shell uses, like stars and stuff.
3
+ Match files using the patterns the shell uses.
4
4
 
5
- [![Build Status](https://travis-ci.org/isaacs/node-glob.svg?branch=master)](https://travis-ci.org/isaacs/node-glob/) [![Build Status](https://ci.appveyor.com/api/projects/status/kd7f3yftf7unxlsx?svg=true)](https://ci.appveyor.com/project/isaacs/node-glob) [![Coverage Status](https://coveralls.io/repos/isaacs/node-glob/badge.svg?branch=master&service=github)](https://coveralls.io/github/isaacs/node-glob?branch=master)
5
+ The most correct and second fastest glob implementation in
6
+ JavaScript. (See **Comparison to Other JavaScript Glob
7
+ Implementations** at the bottom of this readme.)
6
8
 
7
- This is a glob implementation in JavaScript. It uses the `minimatch`
8
- library to do its matching.
9
-
10
- ![a fun cartoon logo made of glob characters](logo/glob.png)
9
+ ![a fun cartoon logo made of glob characters](https://github.com/isaacs/node-glob/raw/main/logo/glob.png)
11
10
 
12
11
  ## Usage
13
12
 
@@ -17,305 +16,583 @@ Install with npm
17
16
  npm i glob
18
17
  ```
19
18
 
20
- ```javascript
21
- var glob = require("glob")
19
+ **Note** the npm package name is _not_ `node-glob` that's a
20
+ different thing that was abandoned years ago. Just `glob`.
21
+
22
+ ```js
23
+ // load using import
24
+ import { glob, globSync, globStream, globStreamSync, Glob } from 'glob'
25
+ // or using commonjs, that's fine, too
26
+ const {
27
+ glob,
28
+ globSync,
29
+ globStream,
30
+ globStreamSync,
31
+ Glob,
32
+ } = require('glob')
33
+
34
+ // or default export is fine too, just returns the glob function
35
+ // with all the aliases attached.
36
+ import glob from 'glob'
37
+ // or using commonjs
38
+ const glob = require('glob')
39
+
40
+ // the main glob() and globSync() resolve/return array of filenames
41
+
42
+ // all js files, but don't look in node_modules
43
+ const jsfiles = await glob('**/*.js', { ignore: 'node_modules/**' })
44
+
45
+ // pass in a signal to cancel the glob walk
46
+ const stopAfter100ms = await glob('**/*.css', {
47
+ signal: AbortSignal.timeout(100),
48
+ })
49
+
50
+ // multiple patterns supported as well
51
+ const images = await glob(['css/*.{png,jpeg}', 'public/*.{png,jpeg}'])
52
+
53
+ // but of course you can do that with the glob pattern also
54
+ // the sync function is the same, just returns a string[] instead
55
+ // of Promise<string[]>
56
+ const imagesAlt = globSync('{css,public}/*.{png,jpeg}')
57
+
58
+ // you can also stream them, this is a Minipass stream
59
+ const filesStream = globStream(['**/*.dat', 'logs/**/*.log'])
60
+
61
+ // construct a Glob object if you wanna do it that way, which
62
+ // allows for much faster walks if you have to look in the same
63
+ // folder multiple times.
64
+ const g = new Glob('**/foo')
65
+ // glob objects are async iterators, can also do globIterate() or
66
+ // g.iterate(), same deal
67
+ for await (const file of g) {
68
+ console.log('found a foo file:', file)
69
+ }
70
+ // pass a glob as the glob options to reuse its settings and caches
71
+ const g2 = new Glob('**/bar', g)
72
+ // sync iteration works as well
73
+ for (const file of g2) {
74
+ console.log('found a bar file:', file)
75
+ }
76
+
77
+ // you can also pass withFileTypes: true to get Path objects
78
+ // these are like a Dirent, but with some more added powers
79
+ // check out http://npm.im/path-scurry for more info on their API
80
+ const g3 = new Glob('**/baz/**', { withFileTypes: true })
81
+ g3.stream().on('data', path => {
82
+ console.log(
83
+ 'got a path object',
84
+ path.fullpath(),
85
+ path.isDirectory(),
86
+ path.readdirSync().map(e => e.name)
87
+ )
88
+ })
89
+
90
+ // if you use stat:true and withFileTypes, you can sort results
91
+ // by things like modified time, filter by permission mode, etc.
92
+ // All Stats fields will be avialable in that case. Slightly
93
+ // slower, though.
94
+ // For example:
95
+ const results = await glob('**', { stat: true, withFileTypes: true })
96
+
97
+ const timeSortedFiles = results
98
+ .sort((a, b) => a.mtimeMS - b.mtimeMS)
99
+ .map(path => path.fullpath())
100
+
101
+ const groupReadableFiles = results
102
+ .filter(path => path.mode & 0o040)
103
+ .map(path => path.fullpath())
104
+
105
+ // custom ignores can be done like this, for example by saying
106
+ // you'll ignore all markdown files, and all folders named 'docs'
107
+ const customIgnoreResults = await glob('**', {
108
+ ignore: {
109
+ ignored: (p) => /\.md$/.test(p.name),
110
+ childrenIgnored: (p) => p.isNamed('docs'),
111
+ },
112
+ })
113
+
114
+ // another fun use case, only return files with the same name as
115
+ // their parent folder, plus either `.ts` or `.js`
116
+ const folderNamedModules = await glob('**/*.{ts,js}', {
117
+ ignore: {
118
+ ignored: (p) => {
119
+ const pp = p.parent
120
+ return !(p.isNamed(pp.name + '.ts') || p.isNamed(pp.name + '.js'))
121
+ }
122
+ }
123
+ })
22
124
 
23
- // options is optional
24
- glob("**/*.js", options, function (er, files) {
25
- // files is an array of filenames.
26
- // If the `nonull` option is set, and nothing
27
- // was found, then files is ["**/*.js"]
28
- // er is an error object or null.
125
+ // find all files edited in the last hour, to do this, we ignore
126
+ // all of them that are more than an hour old
127
+ const newFiles = await glob('**', {
128
+ // need stat so we have mtime
129
+ stat: true,
130
+ // only want the files, not the dirs
131
+ nodir: true,
132
+ ignore: {
133
+ ignored: (p) => {
134
+ return (new Date() - p.mtime) > (60 * 60 * 1000)
135
+ },
136
+ // could add similar childrenIgnored here as well, but
137
+ // directory mtime is inconsistent across platforms, so
138
+ // probably better not to, unless you know the system
139
+ // tracks this reliably.
140
+ }
29
141
  })
30
142
  ```
31
143
 
32
- ## Glob Primer
144
+ **Note** Glob patterns should always use `/` as a path separator,
145
+ even on Windows systems, as `\` is used to escape glob
146
+ characters. If you wish to use `\` as a path separator _instead
147
+ of_ using it as an escape character on Windows platforms, you may
148
+ set `windowsPathsNoEscape:true` in the options. In this mode,
149
+ special glob characters cannot be escaped, making it impossible
150
+ to match a literal `*` `?` and so on in filenames.
33
151
 
34
- "Globs" are the patterns you type when you do stuff like `ls *.js` on
35
- the command line, or put `build/*` in a `.gitignore` file.
36
-
37
- Before parsing the path part patterns, braced sections are expanded
38
- into a set. Braced sections start with `{` and end with `}`, with any
39
- number of comma-delimited sections within. Braced sections may contain
40
- slash characters, so `a{/b/c,bcd}` would expand into `a/b/c` and `abcd`.
41
-
42
- The following characters have special magic meaning when used in a
43
- path portion:
44
-
45
- * `*` Matches 0 or more characters in a single path portion
46
- * `?` Matches 1 character
47
- * `[...]` Matches a range of characters, similar to a RegExp range.
48
- If the first character of the range is `!` or `^` then it matches
49
- any character not in the range.
50
- * `!(pattern|pattern|pattern)` Matches anything that does not match
51
- any of the patterns provided.
52
- * `?(pattern|pattern|pattern)` Matches zero or one occurrence of the
53
- patterns provided.
54
- * `+(pattern|pattern|pattern)` Matches one or more occurrences of the
55
- patterns provided.
56
- * `*(a|b|c)` Matches zero or more occurrences of the patterns provided
57
- * `@(pattern|pat*|pat?erN)` Matches exactly one of the patterns
58
- provided
59
- * `**` If a "globstar" is alone in a path portion, then it matches
60
- zero or more directories and subdirectories searching for matches.
61
- It does not crawl symlinked directories.
152
+ ## `glob(pattern: string | string[], options?: GlobOptions) => Promise<string[] | Path[]>`
62
153
 
63
- ### Dots
154
+ Perform an asynchronous glob search for the pattern(s) specified.
155
+ Returns
156
+ [Path](https://isaacs.github.io/path-scurry/classes/PathBase)
157
+ objects if the `withFileTypes` option is set to `true`. See below
158
+ for full options field desciptions.
64
159
 
65
- If a file or directory path portion has a `.` as the first character,
66
- then it will not match any glob pattern unless that pattern's
67
- corresponding path part also has a `.` as its first character.
160
+ ## `globSync(pattern: string | string[], options?: GlobOptions) => string[] | Path[]`
68
161
 
69
- For example, the pattern `a/.*/c` would match the file at `a/.b/c`.
70
- However the pattern `a/*/c` would not, because `*` does not start with
71
- a dot character.
162
+ Synchronous form of `glob()`.
72
163
 
73
- You can make glob treat dots as normal characters by setting
74
- `dot:true` in the options.
164
+ Alias: `glob.sync()`
75
165
 
76
- ### Basename Matching
166
+ ## `globIterate(pattern: string | string[], options?: GlobOptions) => AsyncGenerator<string>`
77
167
 
78
- If you set `matchBase:true` in the options, and the pattern has no
79
- slashes in it, then it will seek for any file anywhere in the tree
80
- with a matching basename. For example, `*.js` would match
81
- `test/simple/basic.js`.
168
+ Return an async iterator for walking glob pattern matches.
82
169
 
83
- ### Empty Sets
170
+ Alias: `glob.iterate()`
84
171
 
85
- If no matching files are found, then an empty array is returned. This
86
- differs from the shell, where the pattern itself is returned. For
87
- example:
172
+ ## `globIterateSync(pattern: string | string[], options?: GlobOptions) => Generator<string>`
88
173
 
89
- $ echo a*s*d*f
90
- a*s*d*f
174
+ Return a sync iterator for walking glob pattern matches.
91
175
 
92
- To get the bash-style behavior, set the `nonull:true` in the options.
176
+ Alias: `glob.iterate.sync()`, `glob.sync.iterate()`
93
177
 
94
- ### See Also:
178
+ ## `globStream(pattern: string | string[], options?: GlobOptions) => Minipass<string | Path>`
95
179
 
96
- * `man sh`
97
- * `man bash` (Search for "Pattern Matching")
98
- * `man 3 fnmatch`
99
- * `man 5 gitignore`
100
- * [minimatch documentation](https://github.com/isaacs/minimatch)
180
+ Return a stream that emits all the strings or `Path` objects and
181
+ then emits `end` when completed.
101
182
 
102
- ## glob.hasMagic(pattern, [options])
183
+ Alias: `glob.stream()`
103
184
 
104
- Returns `true` if there are any special characters in the pattern, and
105
- `false` otherwise.
185
+ ## `globStreamSync(pattern: string | string[], options?: GlobOptions) => Minipass<string | Path>`
106
186
 
107
- Note that the options affect the results. If `noext:true` is set in
108
- the options object, then `+(a|b)` will not be considered a magic
109
- pattern. If the pattern has a brace expansion, like `a/{b/c,x/y}`
110
- then that is considered magical, unless `nobrace:true` is set in the
111
- options.
187
+ Syncronous form of `globStream()`. Will read all the matches as
188
+ fast as you consume them, even all in a single tick if you
189
+ consume them immediately, but will still respond to backpressure
190
+ if they're not consumed immediately.
112
191
 
113
- ## glob(pattern, [options], cb)
192
+ Alias: `glob.stream.sync()`, `glob.sync.stream()`
114
193
 
115
- * `pattern` `{String}` Pattern to be matched
116
- * `options` `{Object}`
117
- * `cb` `{Function}`
118
- * `err` `{Error | null}`
119
- * `matches` `{Array<String>}` filenames found matching the pattern
194
+ ## `hasMagic(pattern: string | string[], options?: GlobOptions) => boolean`
120
195
 
121
- Perform an asynchronous glob search.
196
+ Returns `true` if the provided pattern contains any "magic" glob
197
+ characters, given the options provided.
122
198
 
123
- ## glob.sync(pattern, [options])
199
+ Brace expansion is not considered "magic" unless the
200
+ `magicalBraces` option is set, as brace expansion just turns one
201
+ string into an array of strings. So a pattern like `'x{a,b}y'`
202
+ would return `false`, because `'xay'` and `'xby'` both do not
203
+ contain any magic glob characters, and it's treated the same as
204
+ if you had called it on `['xay', 'xby']`. When
205
+ `magicalBraces:true` is in the options, brace expansion _is_
206
+ treated as a pattern having magic.
124
207
 
125
- * `pattern` `{String}` Pattern to be matched
126
- * `options` `{Object}`
127
- * return: `{Array<String>}` filenames found matching the pattern
208
+ ## `escape(pattern: string, options?: GlobOptions) => string`
128
209
 
129
- Perform a synchronous glob search.
210
+ Escape all magic characters in a glob pattern, so that it will
211
+ only ever match literal strings
130
212
 
131
- ## Class: glob.Glob
213
+ If the `windowsPathsNoEscape` option is used, then characters are
214
+ escaped by wrapping in `[]`, because a magic character wrapped in
215
+ a character class can only be satisfied by that exact character.
132
216
 
133
- Create a Glob object by instantiating the `glob.Glob` class.
217
+ Slashes (and backslashes in `windowsPathsNoEscape` mode) cannot
218
+ be escaped or unescaped.
134
219
 
135
- ```javascript
136
- var Glob = require("glob").Glob
137
- var mg = new Glob(pattern, options, cb)
138
- ```
220
+ ## `unescape(pattern: string, options?: GlobOptions) => string`
221
+
222
+ Un-escape a glob string that may contain some escaped characters.
223
+
224
+ If the `windowsPathsNoEscape` option is used, then square-brace
225
+ escapes are removed, but not backslash escapes. For example, it
226
+ will turn the string `'[*]'` into `*`, but it will not turn
227
+ `'\\*'` into `'*'`, because `\` is a path separator in
228
+ `windowsPathsNoEscape` mode.
139
229
 
140
- It's an EventEmitter, and starts walking the filesystem to find matches
141
- immediately.
230
+ When `windowsPathsNoEscape` is not set, then both brace escapes
231
+ and backslash escapes are removed.
142
232
 
143
- ### new glob.Glob(pattern, [options], [cb])
233
+ Slashes (and backslashes in `windowsPathsNoEscape` mode) cannot
234
+ be escaped or unescaped.
144
235
 
145
- * `pattern` `{String}` pattern to search for
146
- * `options` `{Object}`
147
- * `cb` `{Function}` Called when an error occurs, or matches are found
148
- * `err` `{Error | null}`
149
- * `matches` `{Array<String>}` filenames found matching the pattern
236
+ ## Class `Glob`
150
237
 
151
- Note that if the `sync` flag is set in the options, then matches will
152
- be immediately available on the `g.found` member.
238
+ An object that can perform glob pattern traversals.
239
+
240
+ ### `const g = new Glob(pattern: string | string[], options: GlobOptions)`
241
+
242
+ See full options descriptions below.
243
+
244
+ Note that a previous `Glob` object can be passed as the
245
+ `GlobOptions` to another `Glob` instantiation to re-use settings
246
+ and caches with a new pattern.
247
+
248
+ Traversal functions can be called multiple times to run the walk
249
+ again.
250
+
251
+ ### `g.stream()`
252
+
253
+ Stream results asynchronously,
254
+
255
+ ### `g.streamSync()`
256
+
257
+ Stream results synchronously.
258
+
259
+ ### `g.iterate()`
260
+
261
+ Default async iteration function. Returns an AsyncGenerator that
262
+ iterates over the results.
263
+
264
+ ### `g.iterateSync()`
265
+
266
+ Default sync iteration function. Returns a Generator that
267
+ iterates over the results.
268
+
269
+ ### `g.walk()`
270
+
271
+ Returns a Promise that resolves to the results array.
272
+
273
+ ### `g.walkSync()`
274
+
275
+ Returns a results array.
153
276
 
154
277
  ### Properties
155
278
 
156
- * `minimatch` The minimatch object that the glob uses.
157
- * `options` The options object passed in.
158
- * `aborted` Boolean which is set to true when calling `abort()`. There
159
- is no way at this time to continue a glob search after aborting, but
160
- you can re-use the statCache to avoid having to duplicate syscalls.
161
- * `cache` Convenience object. Each field has the following possible
162
- values:
163
- * `false` - Path does not exist
164
- * `true` - Path exists
165
- * `'FILE'` - Path exists, and is not a directory
166
- * `'DIR'` - Path exists, and is a directory
167
- * `[file, entries, ...]` - Path exists, is a directory, and the
168
- array value is the results of `fs.readdir`
169
- * `statCache` Cache of `fs.stat` results, to prevent statting the same
170
- path multiple times.
171
- * `symlinks` A record of which paths are symbolic links, which is
172
- relevant in resolving `**` patterns.
173
- * `realpathCache` An optional object which is passed to `fs.realpath`
174
- to minimize unnecessary syscalls. It is stored on the instantiated
175
- Glob object, and may be re-used.
176
-
177
- ### Events
178
-
179
- * `end` When the matching is finished, this is emitted with all the
180
- matches found. If the `nonull` option is set, and no match was found,
181
- then the `matches` list contains the original pattern. The matches
182
- are sorted, unless the `nosort` flag is set.
183
- * `match` Every time a match is found, this is emitted with the specific
184
- thing that matched. It is not deduplicated or resolved to a realpath.
185
- * `error` Emitted when an unexpected error is encountered, or whenever
186
- any fs error occurs if `options.strict` is set.
187
- * `abort` When `abort()` is called, this event is raised.
188
-
189
- ### Methods
190
-
191
- * `pause` Temporarily stop the search
192
- * `resume` Resume the search
193
- * `abort` Stop the search forever
194
-
195
- ### Options
196
-
197
- All the options that can be passed to Minimatch can also be passed to
198
- Glob to change pattern matching behavior. Also, some have been added,
199
- or have glob-specific ramifications.
200
-
201
- All options are false by default, unless otherwise noted.
202
-
203
- All options are added to the Glob object, as well.
204
-
205
- If you are running many `glob` operations, you can pass a Glob object
206
- as the `options` argument to a subsequent operation to shortcut some
207
- `stat` and `readdir` calls. At the very least, you may pass in shared
208
- `symlinks`, `statCache`, `realpathCache`, and `cache` options, so that
209
- parallel glob operations will be sped up by sharing information about
210
- the filesystem.
211
-
212
- * `cwd` The current working directory in which to search. Defaults
213
- to `process.cwd()`.
214
- * `root` The place where patterns starting with `/` will be mounted
215
- onto. Defaults to `path.resolve(options.cwd, "/")` (`/` on Unix
216
- systems, and `C:\` or some such on Windows.)
217
- * `dot` Include `.dot` files in normal matches and `globstar` matches.
218
- Note that an explicit dot in a portion of the pattern will always
219
- match dot files.
220
- * `nomount` By default, a pattern starting with a forward-slash will be
221
- "mounted" onto the root setting, so that a valid filesystem path is
222
- returned. Set this flag to disable that behavior.
223
- * `mark` Add a `/` character to directory matches. Note that this
279
+ All options are stored as properties on the `Glob` object.
280
+
281
+ - `opts` The options provided to the constructor.
282
+ - `patterns` An array of parsed immutable `Pattern` objects.
283
+
284
+ ## Options
285
+
286
+ Exported as `GlobOptions` TypeScript interface. A `GlobOptions`
287
+ object may be provided to any of the exported methods, and must
288
+ be provided to the `Glob` constructor.
289
+
290
+ All options are optional, boolean, and false by default, unless
291
+ otherwise noted.
292
+
293
+ All resolved options are added to the Glob object as properties.
294
+
295
+ If you are running many `glob` operations, you can pass a Glob
296
+ object as the `options` argument to a subsequent operation to
297
+ share the previously loaded cache.
298
+
299
+ - `cwd` String path or `file://` string or URL object. The
300
+ current working directory in which to search. Defaults to
301
+ `process.cwd()`. See also: "Windows, CWDs, Drive Letters, and
302
+ UNC Paths", below.
303
+
304
+ This option may be eiher a string path or a `file://` URL
305
+ object or string.
306
+
307
+ - `root` A string path resolved against the `cwd` option, which
308
+ is used as the starting point for absolute patterns that start
309
+ with `/`, (but not drive letters or UNC paths on Windows).
310
+
311
+ Note that this _doesn't_ necessarily limit the walk to the
312
+ `root` directory, and doesn't affect the cwd starting point for
313
+ non-absolute patterns. A pattern containing `..` will still be
314
+ able to traverse out of the root directory, if it is not an
315
+ actual root directory on the filesystem, and any non-absolute
316
+ patterns will be matched in the `cwd`. For example, the
317
+ pattern `/../*` with `{root:'/some/path'}` will return all
318
+ files in `/some`, not all files in `/some/path`. The pattern
319
+ `*` with `{root:'/some/path'}` will return all the entries in
320
+ the cwd, not the entries in `/some/path`.
321
+
322
+ To start absolute and non-absolute patterns in the same
323
+ path, you can use `{root:''}`. However, be aware that on
324
+ Windows systems, a pattern like `x:/*` or `//host/share/*` will
325
+ _always_ start in the `x:/` or `//host/share` directory,
326
+ regardless of the `root` setting.
327
+
328
+ - `windowsPathsNoEscape` Use `\\` as a path separator _only_, and
329
+ _never_ as an escape character. If set, all `\\` characters are
330
+ replaced with `/` in the pattern.
331
+
332
+ Note that this makes it **impossible** to match against paths
333
+ containing literal glob pattern characters, but allows matching
334
+ with patterns constructed using `path.join()` and
335
+ `path.resolve()` on Windows platforms, mimicking the (buggy!)
336
+ behavior of Glob v7 and before on Windows. Please use with
337
+ caution, and be mindful of [the caveat below about Windows
338
+ paths](#windows). (For legacy reasons, this is also set if
339
+ `allowWindowsEscape` is set to the exact value `false`.)
340
+
341
+ - `dot` Include `.dot` files in normal matches and `globstar`
342
+ matches. Note that an explicit dot in a portion of the pattern
343
+ will always match dot files.
344
+
345
+ - `magicalBraces` Treat brace expansion like `{a,b}` as a "magic"
346
+ pattern. Has no effect if {@link nobrace} is set.
347
+
348
+ Only has effect on the {@link hasMagic} function, no effect on
349
+ glob pattern matching itself.
350
+
351
+ - `dotRelative` Prepend all relative path strings with `./` (or
352
+ `.\` on Windows).
353
+
354
+ Without this option, returned relative paths are "bare", so
355
+ instead of returning `'./foo/bar'`, they are returned as
356
+ `'foo/bar'`.
357
+
358
+ Relative patterns starting with `'../'` are not prepended with
359
+ `./`, even if this option is set.
360
+
361
+ - `mark` Add a `/` character to directory matches. Note that this
224
362
  requires additional stat calls.
225
- * `nosort` Don't sort the results.
226
- * `stat` Set to true to stat *all* results. This reduces performance
227
- somewhat, and is completely unnecessary, unless `readdir` is presumed
228
- to be an untrustworthy indicator of file existence.
229
- * `silent` When an unusual error is encountered when attempting to
230
- read a directory, a warning will be printed to stderr. Set the
231
- `silent` option to true to suppress these warnings.
232
- * `strict` When an unusual error is encountered when attempting to
233
- read a directory, the process will just continue on in search of
234
- other matches. Set the `strict` option to raise an error in these
235
- cases.
236
- * `cache` See `cache` property above. Pass in a previously generated
237
- cache object to save some fs calls.
238
- * `statCache` A cache of results of filesystem information, to prevent
239
- unnecessary stat calls. While it should not normally be necessary
240
- to set this, you may pass the statCache from one glob() call to the
241
- options object of another, if you know that the filesystem will not
242
- change between calls. (See "Race Conditions" below.)
243
- * `symlinks` A cache of known symbolic links. You may pass in a
244
- previously generated `symlinks` object to save `lstat` calls when
245
- resolving `**` matches.
246
- * `sync` DEPRECATED: use `glob.sync(pattern, opts)` instead.
247
- * `nounique` In some cases, brace-expanded patterns can result in the
248
- same file showing up multiple times in the result set. By default,
249
- this implementation prevents duplicates in the result set. Set this
250
- flag to disable that behavior.
251
- * `nonull` Set to never return an empty set, instead returning a set
252
- containing the pattern itself. This is the default in glob(3).
253
- * `debug` Set to enable debug logging in minimatch and glob.
254
- * `nobrace` Do not expand `{a,b}` and `{1..3}` brace sets.
255
- * `noglobstar` Do not match `**` against multiple filenames. (Ie,
363
+
364
+ - `nobrace` Do not expand `{a,b}` and `{1..3}` brace sets.
365
+
366
+ - `noglobstar` Do not match `**` against multiple filenames. (Ie,
256
367
  treat it as a normal `*` instead.)
257
- * `noext` Do not match `+(a|b)` "extglob" patterns.
258
- * `nocase` Perform a case-insensitive match. Note: on
259
- case-insensitive filesystems, non-magic patterns will match by
260
- default, since `stat` and `readdir` will not raise errors.
261
- * `matchBase` Perform a basename-only match if the pattern does not
262
- contain any slash characters. That is, `*.js` would be treated as
263
- equivalent to `**/*.js`, matching all js files in all directories.
264
- * `nodir` Do not match directories, only files. (Note: to match
265
- *only* directories, simply put a `/` at the end of the pattern.)
266
- * `ignore` Add a pattern or an array of glob patterns to exclude matches.
267
- Note: `ignore` patterns are *always* in `dot:true` mode, regardless
268
- of any other settings.
269
- * `follow` Follow symlinked directories when expanding `**` patterns.
270
- Note that this can result in a lot of duplicate references in the
271
- presence of cyclic links.
272
- * `realpath` Set to true to call `fs.realpath` on all of the results.
273
- In the case of a symlink that cannot be resolved, the full absolute
274
- path to the matched entry is returned (though it will usually be a
275
- broken symlink)
276
- * `absolute` Set to true to always receive absolute paths for matched
277
- files. Unlike `realpath`, this also affects the values returned in
278
- the `match` event.
279
- * `fs` File-system object with Node's `fs` API. By default, the built-in
280
- `fs` module will be used. Set to a volume provided by a library like
281
- `memfs` to avoid using the "real" file-system.
368
+
369
+ - `noext` Do not match "extglob" patterns such as `+(a|b)`.
370
+
371
+ - `nocase` Perform a case-insensitive match. This defaults to
372
+ `true` on macOS and Windows systems, and `false` on all others.
373
+
374
+ **Note** `nocase` should only be explicitly set when it is
375
+ known that the filesystem's case sensitivity differs from the
376
+ platform default. If set `true` on case-sensitive file
377
+ systems, or `false` on case-insensitive file systems, then the
378
+ walk may return more or less results than expected.
379
+
380
+ - `maxDepth` Specify a number to limit the depth of the directory
381
+ traversal to this many levels below the `cwd`.
382
+
383
+ - `matchBase` Perform a basename-only match if the pattern does
384
+ not contain any slash characters. That is, `*.js` would be
385
+ treated as equivalent to `**/*.js`, matching all js files in
386
+ all directories.
387
+
388
+ - `nodir` Do not match directories, only files. (Note: to match
389
+ _only_ directories, put a `/` at the end of the pattern.)
390
+
391
+ - `stat` Call `lstat()` on all entries, whether required or not
392
+ to determine whether it's a valid match. When used with
393
+ `withFileTypes`, this means that matches will include data such
394
+ as modified time, permissions, and so on. Note that this will
395
+ incur a performance cost due to the added system calls.
396
+
397
+ - `ignore` string or string[], or an object with `ignore` and
398
+ `ignoreChildren` methods.
399
+
400
+ If a string or string[] is provided, then this is treated as a
401
+ glob pattern or array of glob patterns to exclude from matches.
402
+ To ignore all children within a directory, as well as the entry
403
+ itself, append `'/**'` to the ignore pattern.
404
+
405
+ **Note** `ignore` patterns are _always_ in `dot:true` mode,
406
+ regardless of any other settings.
407
+
408
+ If an object is provided that has `ignored(path)` and/or
409
+ `childrenIgnored(path)` methods, then these methods will be
410
+ called to determine whether any Path is a match or if its
411
+ children should be traversed, respectively.
412
+
413
+ - `follow` Follow symlinked directories when expanding `**`
414
+ patterns. This can result in a lot of duplicate references in
415
+ the presence of cyclic links, and make performance quite bad.
416
+
417
+ By default, a `**` in a pattern will follow 1 symbolic link if
418
+ it is not the first item in the pattern, or none if it is the
419
+ first item in the pattern, following the same behavior as Bash.
420
+
421
+ - `realpath` Set to true to call `fs.realpath` on all of the
422
+ results. In the case of an entry that cannot be resolved, the
423
+ entry is omitted. This incurs a slight performance penalty, of
424
+ course, because of the added system calls.
425
+
426
+ - `absolute` Set to true to always receive absolute paths for
427
+ matched files. Set to `false` to always receive relative paths
428
+ for matched files.
429
+
430
+ By default, when this option is not set, absolute paths are
431
+ returned for patterns that are absolute, and otherwise paths
432
+ are returned that are relative to the `cwd` setting.
433
+
434
+ This does _not_ make an extra system call to get the realpath,
435
+ it only does string path resolution.
436
+
437
+ `absolute` may not be used along with `withFileTypes`.
438
+
439
+ - `platform` Defaults to value of `process.platform` if
440
+ available, or `'linux'` if not. Setting `platform:'win32'` on
441
+ non-Windows systems may cause strange behavior.
442
+
443
+ - `withFileTypes` Return [PathScurry](http://npm.im/path-scurry)
444
+ `Path` objects instead of strings. These are similar to a
445
+ NodeJS `Dirent` object, but with additional methods and
446
+ properties.
447
+
448
+ `withFileTypes` may not be used along with `absolute`.
449
+
450
+ - `signal` An AbortSignal which will cancel the Glob walk when
451
+ triggered.
452
+
453
+ - `fs` An override object to pass in custom filesystem methods.
454
+ See [PathScurry docs](http://npm.im/path-scurry) for what can
455
+ be overridden.
456
+
457
+ - `scurry` A [PathScurry](http://npm.im/path-scurry) object used
458
+ to traverse the file system. If the `nocase` option is set
459
+ explicitly, then any provided `scurry` object must match this
460
+ setting.
461
+
462
+ ## Glob Primer
463
+
464
+ Much more information about glob pattern expansion can be found
465
+ by running `man bash` and searching for `Pattern Matching`.
466
+
467
+ "Globs" are the patterns you type when you do stuff like `ls
468
+ *.js` on the command line, or put `build/*` in a `.gitignore`
469
+ file.
470
+
471
+ Before parsing the path part patterns, braced sections are
472
+ expanded into a set. Braced sections start with `{` and end with
473
+ `}`, with 2 or more comma-delimited sections within. Braced
474
+ sections may contain slash characters, so `a{/b/c,bcd}` would
475
+ expand into `a/b/c` and `abcd`.
476
+
477
+ The following characters have special magic meaning when used in
478
+ a path portion. With the exception of `**`, none of these match
479
+ path separators (ie, `/` on all platforms, and `\` on Windows).
480
+
481
+ - `*` Matches 0 or more characters in a single path portion.
482
+ When alone in a path portion, it must match at least 1
483
+ character. If `dot:true` is not specified, then `*` will not
484
+ match against a `.` character at the start of a path portion.
485
+ - `?` Matches 1 character. If `dot:true` is not specified, then
486
+ `?` will not match against a `.` character at the start of a
487
+ path portion.
488
+ - `[...]` Matches a range of characters, similar to a RegExp
489
+ range. If the first character of the range is `!` or `^` then
490
+ it matches any character not in the range. If the first
491
+ character is `]`, then it will be considered the same as `\]`,
492
+ rather than the end of the character class.
493
+ - `!(pattern|pattern|pattern)` Matches anything that does not
494
+ match any of the patterns provided. May _not_ contain `/`
495
+ characters. Similar to `*`, if alone in a path portion, then
496
+ the path portion must have at least one character.
497
+ - `?(pattern|pattern|pattern)` Matches zero or one occurrence of
498
+ the patterns provided. May _not_ contain `/` characters.
499
+ - `+(pattern|pattern|pattern)` Matches one or more occurrences of
500
+ the patterns provided. May _not_ contain `/` characters.
501
+ - `*(a|b|c)` Matches zero or more occurrences of the patterns
502
+ provided. May _not_ contain `/` characters.
503
+ - `@(pattern|pat*|pat?erN)` Matches exactly one of the patterns
504
+ provided. May _not_ contain `/` characters.
505
+ - `**` If a "globstar" is alone in a path portion, then it
506
+ matches zero or more directories and subdirectories searching
507
+ for matches. It does not crawl symlinked directories, unless
508
+ `{follow:true}` is passed in the options object. A pattern
509
+ like `a/b/**` will only match `a/b` if it is a directory.
510
+ Follows 1 symbolic link if not the first item in the pattern,
511
+ or 0 if it is the first item, unless `follow:true` is set, in
512
+ which case it follows all symbolic links.
513
+
514
+ `[:class:]` patterns are supported by this implementation, but
515
+ `[=c=]` and `[.symbol.]` style class patterns are not.
516
+
517
+ ### Dots
518
+
519
+ If a file or directory path portion has a `.` as the first
520
+ character, then it will not match any glob pattern unless that
521
+ pattern's corresponding path part also has a `.` as its first
522
+ character.
523
+
524
+ For example, the pattern `a/.*/c` would match the file at
525
+ `a/.b/c`. However the pattern `a/*/c` would not, because `*` does
526
+ not start with a dot character.
527
+
528
+ You can make glob treat dots as normal characters by setting
529
+ `dot:true` in the options.
530
+
531
+ ### Basename Matching
532
+
533
+ If you set `matchBase:true` in the options, and the pattern has
534
+ no slashes in it, then it will seek for any file anywhere in the
535
+ tree with a matching basename. For example, `*.js` would match
536
+ `test/simple/basic.js`.
537
+
538
+ ### Empty Sets
539
+
540
+ If no matching files are found, then an empty array is returned.
541
+ This differs from the shell, where the pattern itself is
542
+ returned. For example:
543
+
544
+ ```sh
545
+ $ echo a*s*d*f
546
+ a*s*d*f
547
+ ```
282
548
 
283
549
  ## Comparisons to other fnmatch/glob implementations
284
550
 
285
- While strict compliance with the existing standards is a worthwhile
286
- goal, some discrepancies exist between node-glob and other
287
- implementations, and are intentional.
288
-
289
- The double-star character `**` is supported by default, unless the
290
- `noglobstar` flag is set. This is supported in the manner of bsdglob
291
- and bash 4.3, where `**` only has special significance if it is the only
292
- thing in a path part. That is, `a/**/b` will match `a/x/y/b`, but
293
- `a/**b` will not.
294
-
295
- Note that symlinked directories are not crawled as part of a `**`,
296
- though their contents may match against subsequent portions of the
297
- pattern. This prevents infinite loops and duplicates and the like.
298
-
299
- If an escaped pattern has no matches, and the `nonull` flag is set,
300
- then glob returns the pattern as-provided, rather than
301
- interpreting the character escapes. For example,
302
- `glob.match([], "\\*a\\?")` will return `"\\*a\\?"` rather than
303
- `"*a?"`. This is akin to setting the `nullglob` option in bash, except
304
- that it does not resolve escaped pattern characters.
305
-
306
- If brace expansion is not disabled, then it is performed before any
307
- other interpretation of the glob pattern. Thus, a pattern like
308
- `+(a|{b),c)}`, which would not be valid in bash or zsh, is expanded
309
- **first** into the set of `+(a|b)` and `+(a|c)`, and those patterns are
310
- checked for validity. Since those two are valid, matching proceeds.
551
+ While strict compliance with the existing standards is a
552
+ worthwhile goal, some discrepancies exist between node-glob and
553
+ other implementations, and are intentional.
554
+
555
+ The double-star character `**` is supported by default, unless
556
+ the `noglobstar` flag is set. This is supported in the manner of
557
+ bsdglob and bash 5, where `**` only has special significance if
558
+ it is the only thing in a path part. That is, `a/**/b` will match
559
+ `a/x/y/b`, but `a/**b` will not.
560
+
561
+ Note that symlinked directories are not traversed as part of a
562
+ `**`, though their contents may match against subsequent portions
563
+ of the pattern. This prevents infinite loops and duplicates and
564
+ the like. You can force glob to traverse symlinks with `**` by
565
+ setting `{follow:true}` in the options.
566
+
567
+ There is no equivalent of the `nonull` option. A pattern that
568
+ does not find any matches simply resolves to nothing. (An empty
569
+ array, immediately ended stream, etc.)
570
+
571
+ If brace expansion is not disabled, then it is performed before
572
+ any other interpretation of the glob pattern. Thus, a pattern
573
+ like `+(a|{b),c)}`, which would not be valid in bash or zsh, is
574
+ expanded **first** into the set of `+(a|b)` and `+(a|c)`, and
575
+ those patterns are checked for validity. Since those two are
576
+ valid, matching proceeds.
577
+
578
+ The character class patterns `[:class:]` (posix standard named
579
+ classes) style class patterns are supported and unicode-aware,
580
+ but `[=c=]` (locale-specific character collation weight), and
581
+ `[.symbol.]` (collating symbol), are not.
582
+
583
+ ### Repeated Slashes
584
+
585
+ Unlike Bash and zsh, repeated `/` are always coalesced into a
586
+ single path separator.
311
587
 
312
588
  ### Comments and Negation
313
589
 
314
- Previously, this module let you mark a pattern as a "comment" if it
315
- started with a `#` character, or a "negated" pattern if it started
316
- with a `!` character.
590
+ Previously, this module let you mark a pattern as a "comment" if
591
+ it started with a `#` character, or a "negated" pattern if it
592
+ started with a `!` character.
317
593
 
318
- These options were deprecated in version 5, and removed in version 6.
594
+ These options were deprecated in version 5, and removed in
595
+ version 6.
319
596
 
320
597
  To specify things that should not match, use the `ignore` option.
321
598
 
@@ -323,56 +600,487 @@ To specify things that should not match, use the `ignore` option.
323
600
 
324
601
  **Please only use forward-slashes in glob expressions.**
325
602
 
326
- Though windows uses either `/` or `\` as its path separator, only `/`
327
- characters are used by this glob implementation. You must use
328
- forward-slashes **only** in glob expressions. Back-slashes will always
329
- be interpreted as escape characters, not path separators.
603
+ Though windows uses either `/` or `\` as its path separator, only
604
+ `/` characters are used by this glob implementation. You must use
605
+ forward-slashes **only** in glob expressions. Back-slashes will
606
+ always be interpreted as escape characters, not path separators.
607
+
608
+ Results from absolute patterns such as `/foo/*` are mounted onto
609
+ the root setting using `path.join`. On windows, this will by
610
+ default result in `/foo/*` matching `C:\foo\bar.txt`.
611
+
612
+ To automatically coerce all `\` characters to `/` in pattern
613
+ strings, **thus making it impossible to escape literal glob
614
+ characters**, you may set the `windowsPathsNoEscape` option to
615
+ `true`.
616
+
617
+ ### Windows, CWDs, Drive Letters, and UNC Paths
618
+
619
+ On posix systems, when a pattern starts with `/`, any `cwd`
620
+ option is ignored, and the traversal starts at `/`, plus any
621
+ non-magic path portions specified in the pattern.
330
622
 
331
- Results from absolute patterns such as `/foo/*` are mounted onto the
332
- root setting using `path.join`. On windows, this will by default result
333
- in `/foo/*` matching `C:\foo\bar.txt`.
623
+ On Windows systems, the behavior is similar, but the concept of
624
+ an "absolute path" is somewhat more involved.
625
+
626
+ #### UNC Paths
627
+
628
+ A UNC path may be used as the start of a pattern on Windows
629
+ platforms. For example, a pattern like: `//?/x:/*` will return
630
+ all file entries in the root of the `x:` drive. A pattern like
631
+ `//ComputerName/Share/*` will return all files in the associated
632
+ share.
633
+
634
+ UNC path roots are always compared case insensitively.
635
+
636
+ #### Drive Letters
637
+
638
+ A pattern starting with a drive letter, like `c:/*`, will search
639
+ in that drive, regardless of any `cwd` option provided.
640
+
641
+ If the pattern starts with `/`, and is not a UNC path, and there
642
+ is an explicit `cwd` option set with a drive letter, then the
643
+ drive letter in the `cwd` is used as the root of the directory
644
+ traversal.
645
+
646
+ For example, `glob('/tmp', { cwd: 'c:/any/thing' })` will return
647
+ `['c:/tmp']` as the result.
648
+
649
+ If an explicit `cwd` option is not provided, and the pattern
650
+ starts with `/`, then the traversal will run on the root of the
651
+ drive provided as the `cwd` option. (That is, it is the result of
652
+ `path.resolve('/')`.)
334
653
 
335
654
  ## Race Conditions
336
655
 
337
- Glob searching, by its very nature, is susceptible to race conditions,
338
- since it relies on directory walking and such.
656
+ Glob searching, by its very nature, is susceptible to race
657
+ conditions, since it relies on directory walking.
339
658
 
340
- As a result, it is possible that a file that exists when glob looks for
341
- it may have been deleted or modified by the time it returns the result.
659
+ As a result, it is possible that a file that exists when glob
660
+ looks for it may have been deleted or modified by the time it
661
+ returns the result.
342
662
 
343
- As part of its internal implementation, this program caches all stat
344
- and readdir calls that it makes, in order to cut down on system
345
- overhead. However, this also makes it even more susceptible to races,
346
- especially if the cache or statCache objects are reused between glob
347
- calls.
663
+ By design, this implementation caches all readdir calls that it
664
+ makes, in order to cut down on system overhead. However, this
665
+ also makes it even more susceptible to races, especially if the
666
+ cache object is reused between glob calls.
348
667
 
349
668
  Users are thus advised not to use a glob result as a guarantee of
350
- filesystem state in the face of rapid changes. For the vast majority
351
- of operations, this is never a problem.
669
+ filesystem state in the face of rapid changes. For the vast
670
+ majority of operations, this is never a problem.
671
+
672
+ ### See Also:
673
+
674
+ - `man sh`
675
+ - `man bash` [Pattern
676
+ Matching](https://www.gnu.org/software/bash/manual/html_node/Pattern-Matching.html)
677
+ - `man 3 fnmatch`
678
+ - `man 5 gitignore`
679
+ - [minimatch documentation](https://github.com/isaacs/minimatch)
352
680
 
353
681
  ## Glob Logo
354
- Glob's logo was created by [Tanya Brassie](http://tanyabrassie.com/). Logo files can be found [here](https://github.com/isaacs/node-glob/tree/master/logo).
355
682
 
356
- The logo is licensed under a [Creative Commons Attribution-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-sa/4.0/).
683
+ Glob's logo was created by [Tanya
684
+ Brassie](http://tanyabrassie.com/). Logo files can be found
685
+ [here](https://github.com/isaacs/node-glob/tree/master/logo).
686
+
687
+ The logo is licensed under a [Creative Commons
688
+ Attribution-ShareAlike 4.0 International
689
+ License](https://creativecommons.org/licenses/by-sa/4.0/).
357
690
 
358
691
  ## Contributing
359
692
 
360
- Any change to behavior (including bugfixes) must come with a test.
693
+ Any change to behavior (including bugfixes) must come with a
694
+ test.
361
695
 
362
696
  Patches that fail tests or reduce performance will be rejected.
363
697
 
364
- ```
698
+ ```sh
365
699
  # to run tests
366
700
  npm test
367
701
 
368
702
  # to re-generate test fixtures
369
703
  npm run test-regen
370
704
 
371
- # to benchmark against bash/zsh
705
+ # run the benchmarks
372
706
  npm run bench
373
707
 
374
708
  # to profile javascript
375
709
  npm run prof
376
710
  ```
377
711
 
378
- ![](oh-my-glob.gif)
712
+ ## Comparison to Other JavaScript Glob Implementations
713
+
714
+ **tl;dr**
715
+
716
+ - If you want glob matching that is as faithful as possible to
717
+ Bash pattern expansion semantics, and as fast as possible
718
+ within that constraint, _use this module_.
719
+ - If you are reasonably sure that the patterns you will encounter
720
+ are relatively simple, and want the absolutely fastest glob
721
+ matcher out there, _use [fast-glob](http://npm.im/fast-glob)_.
722
+ - If you are reasonably sure that the patterns you will encounter
723
+ are relatively simple, and want the convenience of
724
+ automatically respecting `.gitignore` files, _use
725
+ [globby](http://npm.im/globby)_.
726
+
727
+ There are some other glob matcher libraries on npm, but these
728
+ three are (in my opinion, as of 2023) the best.
729
+
730
+ ---
731
+
732
+ **full explanation**
733
+
734
+ Every library reflects a set of opinions and priorities in the
735
+ trade-offs it makes. Other than this library, I can personally
736
+ recommend both [globby](http://npm.im/globby) and
737
+ [fast-glob](http://npm.im/fast-glob), though they differ in their
738
+ benefits and drawbacks.
739
+
740
+ Both have very nice APIs and are reasonably fast.
741
+
742
+ `fast-glob` is, as far as I am aware, the fastest glob
743
+ implementation in JavaScript today. However, there are many
744
+ cases where the choices that `fast-glob` makes in pursuit of
745
+ speed mean that its results differ from the results returned by
746
+ Bash and other sh-like shells, which may be surprising.
747
+
748
+ In my testing, `fast-glob` is around 10-20% faster than this
749
+ module when walking over 200k files nested 4 directories
750
+ deep[1](#fn-webscale). However, there are some inconsistencies
751
+ with Bash matching behavior that this module does not suffer
752
+ from:
753
+
754
+ - `**` only matches files, not directories
755
+ - `..` path portions are not handled unless they appear at the
756
+ start of the pattern
757
+ - `./!(<pattern>)` will not match any files that _start_ with
758
+ `<pattern>`, even if they do not match `<pattern>`. For
759
+ example, `!(9).txt` will not match `9999.txt`.
760
+ - Some brace patterns in the middle of a pattern will result in
761
+ failing to find certain matches.
762
+ - Extglob patterns are allowed to contain `/` characters.
763
+
764
+ Globby exhibits all of the same pattern semantics as fast-glob,
765
+ (as it is a wrapper around fast-glob) and is slightly slower than
766
+ node-glob (by about 10-20% in the benchmark test set, or in other
767
+ words, anywhere from 20-50% slower than fast-glob). However, it
768
+ adds some API conveniences that may be worth the costs.
769
+
770
+ - Support for `.gitignore` and other ignore files.
771
+ - Support for negated globs (ie, patterns starting with `!`
772
+ rather than using a separate `ignore` option).
773
+
774
+ The priority of this module is "correctness" in the sense of
775
+ performing a glob pattern expansion as faithfully as possible to
776
+ the behavior of Bash and other sh-like shells, with as much speed
777
+ as possible.
778
+
779
+ Note that prior versions of `node-glob` are _not_ on this list.
780
+ Former versions of this module are far too slow for any cases
781
+ where performance matters at all, and were designed with APIs
782
+ that are extremely dated by current JavaScript standards.
783
+
784
+ ---
785
+
786
+ <small id="fn-webscale">[1]: In the cases where this module
787
+ returns results and `fast-glob` doesn't, it's even faster, of
788
+ course.</small>
789
+
790
+ ![lumpy space princess saying 'oh my GLOB'](https://github.com/isaacs/node-glob/raw/main/oh-my-glob.gif)
791
+
792
+ ### Benchmark Results
793
+
794
+ First number is time, smaller is better.
795
+
796
+ Second number is the count of results returned.
797
+
798
+ ```
799
+ --- pattern: '**' ---
800
+ ~~ sync ~~
801
+ node fast-glob sync 0m0.598s 200364
802
+ node globby sync 0m0.765s 200364
803
+ node current globSync mjs 0m0.683s 222656
804
+ node current glob syncStream 0m0.649s 222656
805
+ ~~ async ~~
806
+ node fast-glob async 0m0.350s 200364
807
+ node globby async 0m0.509s 200364
808
+ node current glob async mjs 0m0.463s 222656
809
+ node current glob stream 0m0.411s 222656
810
+
811
+ --- pattern: '**/..' ---
812
+ ~~ sync ~~
813
+ node fast-glob sync 0m0.486s 0
814
+ node globby sync 0m0.769s 200364
815
+ node current globSync mjs 0m0.564s 2242
816
+ node current glob syncStream 0m0.583s 2242
817
+ ~~ async ~~
818
+ node fast-glob async 0m0.283s 0
819
+ node globby async 0m0.512s 200364
820
+ node current glob async mjs 0m0.299s 2242
821
+ node current glob stream 0m0.312s 2242
822
+
823
+ --- pattern: './**/0/**/0/**/0/**/0/**/*.txt' ---
824
+ ~~ sync ~~
825
+ node fast-glob sync 0m0.490s 10
826
+ node globby sync 0m0.517s 10
827
+ node current globSync mjs 0m0.540s 10
828
+ node current glob syncStream 0m0.550s 10
829
+ ~~ async ~~
830
+ node fast-glob async 0m0.290s 10
831
+ node globby async 0m0.296s 10
832
+ node current glob async mjs 0m0.278s 10
833
+ node current glob stream 0m0.302s 10
834
+
835
+ --- pattern: './**/[01]/**/[12]/**/[23]/**/[45]/**/*.txt' ---
836
+ ~~ sync ~~
837
+ node fast-glob sync 0m0.500s 160
838
+ node globby sync 0m0.528s 160
839
+ node current globSync mjs 0m0.556s 160
840
+ node current glob syncStream 0m0.573s 160
841
+ ~~ async ~~
842
+ node fast-glob async 0m0.283s 160
843
+ node globby async 0m0.301s 160
844
+ node current glob async mjs 0m0.306s 160
845
+ node current glob stream 0m0.322s 160
846
+
847
+ --- pattern: './**/0/**/0/**/*.txt' ---
848
+ ~~ sync ~~
849
+ node fast-glob sync 0m0.502s 5230
850
+ node globby sync 0m0.527s 5230
851
+ node current globSync mjs 0m0.544s 5230
852
+ node current glob syncStream 0m0.557s 5230
853
+ ~~ async ~~
854
+ node fast-glob async 0m0.285s 5230
855
+ node globby async 0m0.305s 5230
856
+ node current glob async mjs 0m0.304s 5230
857
+ node current glob stream 0m0.310s 5230
858
+
859
+ --- pattern: '**/*.txt' ---
860
+ ~~ sync ~~
861
+ node fast-glob sync 0m0.580s 200023
862
+ node globby sync 0m0.771s 200023
863
+ node current globSync mjs 0m0.685s 200023
864
+ node current glob syncStream 0m0.649s 200023
865
+ ~~ async ~~
866
+ node fast-glob async 0m0.349s 200023
867
+ node globby async 0m0.509s 200023
868
+ node current glob async mjs 0m0.427s 200023
869
+ node current glob stream 0m0.388s 200023
870
+
871
+ --- pattern: '{**/*.txt,**/?/**/*.txt,**/?/**/?/**/*.txt,**/?/**/?/**/?/**/*.txt,**/?/**/?/**/?/**/?/**/*.txt}' ---
872
+ ~~ sync ~~
873
+ node fast-glob sync 0m0.589s 200023
874
+ node globby sync 0m0.771s 200023
875
+ node current globSync mjs 0m0.716s 200023
876
+ node current glob syncStream 0m0.684s 200023
877
+ ~~ async ~~
878
+ node fast-glob async 0m0.351s 200023
879
+ node globby async 0m0.518s 200023
880
+ node current glob async mjs 0m0.462s 200023
881
+ node current glob stream 0m0.468s 200023
882
+
883
+ --- pattern: '**/5555/0000/*.txt' ---
884
+ ~~ sync ~~
885
+ node fast-glob sync 0m0.496s 1000
886
+ node globby sync 0m0.519s 1000
887
+ node current globSync mjs 0m0.539s 1000
888
+ node current glob syncStream 0m0.567s 1000
889
+ ~~ async ~~
890
+ node fast-glob async 0m0.285s 1000
891
+ node globby async 0m0.299s 1000
892
+ node current glob async mjs 0m0.305s 1000
893
+ node current glob stream 0m0.301s 1000
894
+
895
+ --- pattern: './**/0/**/../[01]/**/0/../**/0/*.txt' ---
896
+ ~~ sync ~~
897
+ node fast-glob sync 0m0.484s 0
898
+ node globby sync 0m0.507s 0
899
+ node current globSync mjs 0m0.577s 4880
900
+ node current glob syncStream 0m0.586s 4880
901
+ ~~ async ~~
902
+ node fast-glob async 0m0.280s 0
903
+ node globby async 0m0.298s 0
904
+ node current glob async mjs 0m0.327s 4880
905
+ node current glob stream 0m0.324s 4880
906
+
907
+ --- pattern: '**/????/????/????/????/*.txt' ---
908
+ ~~ sync ~~
909
+ node fast-glob sync 0m0.547s 100000
910
+ node globby sync 0m0.673s 100000
911
+ node current globSync mjs 0m0.626s 100000
912
+ node current glob syncStream 0m0.618s 100000
913
+ ~~ async ~~
914
+ node fast-glob async 0m0.315s 100000
915
+ node globby async 0m0.414s 100000
916
+ node current glob async mjs 0m0.366s 100000
917
+ node current glob stream 0m0.345s 100000
918
+
919
+ --- pattern: './{**/?{/**/?{/**/?{/**/?,,,,},,,,},,,,},,,}/**/*.txt' ---
920
+ ~~ sync ~~
921
+ node fast-glob sync 0m0.588s 100000
922
+ node globby sync 0m0.670s 100000
923
+ node current globSync mjs 0m0.717s 200023
924
+ node current glob syncStream 0m0.687s 200023
925
+ ~~ async ~~
926
+ node fast-glob async 0m0.343s 100000
927
+ node globby async 0m0.418s 100000
928
+ node current glob async mjs 0m0.519s 200023
929
+ node current glob stream 0m0.451s 200023
930
+
931
+ --- pattern: '**/!(0|9).txt' ---
932
+ ~~ sync ~~
933
+ node fast-glob sync 0m0.573s 160023
934
+ node globby sync 0m0.731s 160023
935
+ node current globSync mjs 0m0.680s 180023
936
+ node current glob syncStream 0m0.659s 180023
937
+ ~~ async ~~
938
+ node fast-glob async 0m0.345s 160023
939
+ node globby async 0m0.476s 160023
940
+ node current glob async mjs 0m0.427s 180023
941
+ node current glob stream 0m0.388s 180023
942
+
943
+ --- pattern: './{*/**/../{*/**/../{*/**/../{*/**/../{*/**,,,,},,,,},,,,},,,,},,,,}/*.txt' ---
944
+ ~~ sync ~~
945
+ node fast-glob sync 0m0.483s 0
946
+ node globby sync 0m0.512s 0
947
+ node current globSync mjs 0m0.811s 200023
948
+ node current glob syncStream 0m0.773s 200023
949
+ ~~ async ~~
950
+ node fast-glob async 0m0.280s 0
951
+ node globby async 0m0.299s 0
952
+ node current glob async mjs 0m0.617s 200023
953
+ node current glob stream 0m0.568s 200023
954
+
955
+ --- pattern: './*/**/../*/**/../*/**/../*/**/../*/**/../*/**/../*/**/../*/**/*.txt' ---
956
+ ~~ sync ~~
957
+ node fast-glob sync 0m0.485s 0
958
+ node globby sync 0m0.507s 0
959
+ node current globSync mjs 0m0.759s 200023
960
+ node current glob syncStream 0m0.740s 200023
961
+ ~~ async ~~
962
+ node fast-glob async 0m0.281s 0
963
+ node globby async 0m0.297s 0
964
+ node current glob async mjs 0m0.544s 200023
965
+ node current glob stream 0m0.464s 200023
966
+
967
+ --- pattern: './*/**/../*/**/../*/**/../*/**/../*/**/*.txt' ---
968
+ ~~ sync ~~
969
+ node fast-glob sync 0m0.486s 0
970
+ node globby sync 0m0.513s 0
971
+ node current globSync mjs 0m0.734s 200023
972
+ node current glob syncStream 0m0.696s 200023
973
+ ~~ async ~~
974
+ node fast-glob async 0m0.286s 0
975
+ node globby async 0m0.296s 0
976
+ node current glob async mjs 0m0.506s 200023
977
+ node current glob stream 0m0.483s 200023
978
+
979
+ --- pattern: './0/**/../1/**/../2/**/../3/**/../4/**/../5/**/../6/**/../7/**/*.txt' ---
980
+ ~~ sync ~~
981
+ node fast-glob sync 0m0.060s 0
982
+ node globby sync 0m0.074s 0
983
+ node current globSync mjs 0m0.067s 0
984
+ node current glob syncStream 0m0.066s 0
985
+ ~~ async ~~
986
+ node fast-glob async 0m0.060s 0
987
+ node globby async 0m0.075s 0
988
+ node current glob async mjs 0m0.066s 0
989
+ node current glob stream 0m0.067s 0
990
+
991
+ --- pattern: './**/?/**/?/**/?/**/?/**/*.txt' ---
992
+ ~~ sync ~~
993
+ node fast-glob sync 0m0.568s 100000
994
+ node globby sync 0m0.651s 100000
995
+ node current globSync mjs 0m0.619s 100000
996
+ node current glob syncStream 0m0.617s 100000
997
+ ~~ async ~~
998
+ node fast-glob async 0m0.332s 100000
999
+ node globby async 0m0.409s 100000
1000
+ node current glob async mjs 0m0.372s 100000
1001
+ node current glob stream 0m0.351s 100000
1002
+
1003
+ --- pattern: '**/*/**/*/**/*/**/*/**' ---
1004
+ ~~ sync ~~
1005
+ node fast-glob sync 0m0.603s 200113
1006
+ node globby sync 0m0.798s 200113
1007
+ node current globSync mjs 0m0.730s 222137
1008
+ node current glob syncStream 0m0.693s 222137
1009
+ ~~ async ~~
1010
+ node fast-glob async 0m0.356s 200113
1011
+ node globby async 0m0.525s 200113
1012
+ node current glob async mjs 0m0.508s 222137
1013
+ node current glob stream 0m0.455s 222137
1014
+
1015
+ --- pattern: './**/*/**/*/**/*/**/*/**/*.txt' ---
1016
+ ~~ sync ~~
1017
+ node fast-glob sync 0m0.622s 200000
1018
+ node globby sync 0m0.792s 200000
1019
+ node current globSync mjs 0m0.722s 200000
1020
+ node current glob syncStream 0m0.695s 200000
1021
+ ~~ async ~~
1022
+ node fast-glob async 0m0.369s 200000
1023
+ node globby async 0m0.527s 200000
1024
+ node current glob async mjs 0m0.502s 200000
1025
+ node current glob stream 0m0.481s 200000
1026
+
1027
+ --- pattern: '**/*.txt' ---
1028
+ ~~ sync ~~
1029
+ node fast-glob sync 0m0.588s 200023
1030
+ node globby sync 0m0.771s 200023
1031
+ node current globSync mjs 0m0.684s 200023
1032
+ node current glob syncStream 0m0.658s 200023
1033
+ ~~ async ~~
1034
+ node fast-glob async 0m0.352s 200023
1035
+ node globby async 0m0.516s 200023
1036
+ node current glob async mjs 0m0.432s 200023
1037
+ node current glob stream 0m0.384s 200023
1038
+
1039
+ --- pattern: './**/**/**/**/**/**/**/**/*.txt' ---
1040
+ ~~ sync ~~
1041
+ node fast-glob sync 0m0.589s 200023
1042
+ node globby sync 0m0.766s 200023
1043
+ node current globSync mjs 0m0.682s 200023
1044
+ node current glob syncStream 0m0.652s 200023
1045
+ ~~ async ~~
1046
+ node fast-glob async 0m0.352s 200023
1047
+ node globby async 0m0.523s 200023
1048
+ node current glob async mjs 0m0.436s 200023
1049
+ node current glob stream 0m0.380s 200023
1050
+
1051
+ --- pattern: '**/*/*.txt' ---
1052
+ ~~ sync ~~
1053
+ node fast-glob sync 0m0.592s 200023
1054
+ node globby sync 0m0.776s 200023
1055
+ node current globSync mjs 0m0.691s 200023
1056
+ node current glob syncStream 0m0.659s 200023
1057
+ ~~ async ~~
1058
+ node fast-glob async 0m0.357s 200023
1059
+ node globby async 0m0.513s 200023
1060
+ node current glob async mjs 0m0.471s 200023
1061
+ node current glob stream 0m0.424s 200023
1062
+
1063
+ --- pattern: '**/*/**/*.txt' ---
1064
+ ~~ sync ~~
1065
+ node fast-glob sync 0m0.585s 200023
1066
+ node globby sync 0m0.766s 200023
1067
+ node current globSync mjs 0m0.694s 200023
1068
+ node current glob syncStream 0m0.664s 200023
1069
+ ~~ async ~~
1070
+ node fast-glob async 0m0.350s 200023
1071
+ node globby async 0m0.514s 200023
1072
+ node current glob async mjs 0m0.472s 200023
1073
+ node current glob stream 0m0.424s 200023
1074
+
1075
+ --- pattern: '**/[0-9]/**/*.txt' ---
1076
+ ~~ sync ~~
1077
+ node fast-glob sync 0m0.544s 100000
1078
+ node globby sync 0m0.636s 100000
1079
+ node current globSync mjs 0m0.626s 100000
1080
+ node current glob syncStream 0m0.621s 100000
1081
+ ~~ async ~~
1082
+ node fast-glob async 0m0.322s 100000
1083
+ node globby async 0m0.404s 100000
1084
+ node current glob async mjs 0m0.360s 100000
1085
+ node current glob stream 0m0.352s 100000
1086
+ ```