@esportsplus/typescript 0.8.1 → 0.8.3

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 (501) hide show
  1. package/bin/tsc +9 -0
  2. package/bin/tsc-alias +3 -0
  3. package/package.json +3 -3
  4. package/node_modules/.package-lock.json +0 -446
  5. package/node_modules/@nodelib/fs.scandir/LICENSE +0 -21
  6. package/node_modules/@nodelib/fs.scandir/README.md +0 -171
  7. package/node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts +0 -20
  8. package/node_modules/@nodelib/fs.scandir/out/adapters/fs.js +0 -19
  9. package/node_modules/@nodelib/fs.scandir/out/constants.d.ts +0 -4
  10. package/node_modules/@nodelib/fs.scandir/out/constants.js +0 -17
  11. package/node_modules/@nodelib/fs.scandir/out/index.d.ts +0 -12
  12. package/node_modules/@nodelib/fs.scandir/out/index.js +0 -26
  13. package/node_modules/@nodelib/fs.scandir/out/providers/async.d.ts +0 -7
  14. package/node_modules/@nodelib/fs.scandir/out/providers/async.js +0 -104
  15. package/node_modules/@nodelib/fs.scandir/out/providers/common.d.ts +0 -1
  16. package/node_modules/@nodelib/fs.scandir/out/providers/common.js +0 -13
  17. package/node_modules/@nodelib/fs.scandir/out/providers/sync.d.ts +0 -5
  18. package/node_modules/@nodelib/fs.scandir/out/providers/sync.js +0 -54
  19. package/node_modules/@nodelib/fs.scandir/out/settings.d.ts +0 -20
  20. package/node_modules/@nodelib/fs.scandir/out/settings.js +0 -24
  21. package/node_modules/@nodelib/fs.scandir/out/types/index.d.ts +0 -20
  22. package/node_modules/@nodelib/fs.scandir/out/types/index.js +0 -2
  23. package/node_modules/@nodelib/fs.scandir/out/utils/fs.d.ts +0 -2
  24. package/node_modules/@nodelib/fs.scandir/out/utils/fs.js +0 -19
  25. package/node_modules/@nodelib/fs.scandir/out/utils/index.d.ts +0 -2
  26. package/node_modules/@nodelib/fs.scandir/out/utils/index.js +0 -5
  27. package/node_modules/@nodelib/fs.scandir/package.json +0 -44
  28. package/node_modules/@nodelib/fs.stat/LICENSE +0 -21
  29. package/node_modules/@nodelib/fs.stat/README.md +0 -126
  30. package/node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts +0 -13
  31. package/node_modules/@nodelib/fs.stat/out/adapters/fs.js +0 -17
  32. package/node_modules/@nodelib/fs.stat/out/index.d.ts +0 -12
  33. package/node_modules/@nodelib/fs.stat/out/index.js +0 -26
  34. package/node_modules/@nodelib/fs.stat/out/providers/async.d.ts +0 -4
  35. package/node_modules/@nodelib/fs.stat/out/providers/async.js +0 -36
  36. package/node_modules/@nodelib/fs.stat/out/providers/sync.d.ts +0 -3
  37. package/node_modules/@nodelib/fs.stat/out/providers/sync.js +0 -23
  38. package/node_modules/@nodelib/fs.stat/out/settings.d.ts +0 -16
  39. package/node_modules/@nodelib/fs.stat/out/settings.js +0 -16
  40. package/node_modules/@nodelib/fs.stat/out/types/index.d.ts +0 -4
  41. package/node_modules/@nodelib/fs.stat/out/types/index.js +0 -2
  42. package/node_modules/@nodelib/fs.stat/package.json +0 -37
  43. package/node_modules/@nodelib/fs.walk/LICENSE +0 -21
  44. package/node_modules/@nodelib/fs.walk/README.md +0 -215
  45. package/node_modules/@nodelib/fs.walk/out/index.d.ts +0 -14
  46. package/node_modules/@nodelib/fs.walk/out/index.js +0 -34
  47. package/node_modules/@nodelib/fs.walk/out/providers/async.d.ts +0 -12
  48. package/node_modules/@nodelib/fs.walk/out/providers/async.js +0 -30
  49. package/node_modules/@nodelib/fs.walk/out/providers/index.d.ts +0 -4
  50. package/node_modules/@nodelib/fs.walk/out/providers/index.js +0 -9
  51. package/node_modules/@nodelib/fs.walk/out/providers/stream.d.ts +0 -12
  52. package/node_modules/@nodelib/fs.walk/out/providers/stream.js +0 -34
  53. package/node_modules/@nodelib/fs.walk/out/providers/sync.d.ts +0 -10
  54. package/node_modules/@nodelib/fs.walk/out/providers/sync.js +0 -14
  55. package/node_modules/@nodelib/fs.walk/out/readers/async.d.ts +0 -30
  56. package/node_modules/@nodelib/fs.walk/out/readers/async.js +0 -97
  57. package/node_modules/@nodelib/fs.walk/out/readers/common.d.ts +0 -7
  58. package/node_modules/@nodelib/fs.walk/out/readers/common.js +0 -31
  59. package/node_modules/@nodelib/fs.walk/out/readers/reader.d.ts +0 -6
  60. package/node_modules/@nodelib/fs.walk/out/readers/reader.js +0 -11
  61. package/node_modules/@nodelib/fs.walk/out/readers/sync.d.ts +0 -15
  62. package/node_modules/@nodelib/fs.walk/out/readers/sync.js +0 -59
  63. package/node_modules/@nodelib/fs.walk/out/settings.d.ts +0 -30
  64. package/node_modules/@nodelib/fs.walk/out/settings.js +0 -26
  65. package/node_modules/@nodelib/fs.walk/out/types/index.d.ts +0 -8
  66. package/node_modules/@nodelib/fs.walk/out/types/index.js +0 -2
  67. package/node_modules/@nodelib/fs.walk/package.json +0 -44
  68. package/node_modules/anymatch/LICENSE +0 -15
  69. package/node_modules/anymatch/README.md +0 -87
  70. package/node_modules/anymatch/index.d.ts +0 -20
  71. package/node_modules/anymatch/index.js +0 -104
  72. package/node_modules/anymatch/package.json +0 -48
  73. package/node_modules/array-union/index.d.ts +0 -25
  74. package/node_modules/array-union/index.js +0 -5
  75. package/node_modules/array-union/license +0 -9
  76. package/node_modules/array-union/package.json +0 -38
  77. package/node_modules/array-union/readme.md +0 -34
  78. package/node_modules/binary-extensions/binary-extensions.json +0 -263
  79. package/node_modules/binary-extensions/binary-extensions.json.d.ts +0 -3
  80. package/node_modules/binary-extensions/index.d.ts +0 -14
  81. package/node_modules/binary-extensions/index.js +0 -1
  82. package/node_modules/binary-extensions/license +0 -10
  83. package/node_modules/binary-extensions/package.json +0 -40
  84. package/node_modules/binary-extensions/readme.md +0 -25
  85. package/node_modules/braces/LICENSE +0 -21
  86. package/node_modules/braces/README.md +0 -586
  87. package/node_modules/braces/index.js +0 -170
  88. package/node_modules/braces/lib/compile.js +0 -60
  89. package/node_modules/braces/lib/constants.js +0 -57
  90. package/node_modules/braces/lib/expand.js +0 -113
  91. package/node_modules/braces/lib/parse.js +0 -331
  92. package/node_modules/braces/lib/stringify.js +0 -32
  93. package/node_modules/braces/lib/utils.js +0 -122
  94. package/node_modules/braces/package.json +0 -77
  95. package/node_modules/chokidar/LICENSE +0 -21
  96. package/node_modules/chokidar/README.md +0 -308
  97. package/node_modules/chokidar/index.js +0 -973
  98. package/node_modules/chokidar/lib/constants.js +0 -66
  99. package/node_modules/chokidar/lib/fsevents-handler.js +0 -526
  100. package/node_modules/chokidar/lib/nodefs-handler.js +0 -654
  101. package/node_modules/chokidar/package.json +0 -70
  102. package/node_modules/chokidar/types/index.d.ts +0 -192
  103. package/node_modules/commander/LICENSE +0 -22
  104. package/node_modules/commander/Readme.md +0 -1129
  105. package/node_modules/commander/esm.mjs +0 -16
  106. package/node_modules/commander/index.js +0 -27
  107. package/node_modules/commander/lib/argument.js +0 -147
  108. package/node_modules/commander/lib/command.js +0 -2179
  109. package/node_modules/commander/lib/error.js +0 -45
  110. package/node_modules/commander/lib/help.js +0 -461
  111. package/node_modules/commander/lib/option.js +0 -326
  112. package/node_modules/commander/lib/suggestSimilar.js +0 -100
  113. package/node_modules/commander/package-support.json +0 -16
  114. package/node_modules/commander/package.json +0 -80
  115. package/node_modules/commander/typings/index.d.ts +0 -891
  116. package/node_modules/dir-glob/index.js +0 -75
  117. package/node_modules/dir-glob/license +0 -9
  118. package/node_modules/dir-glob/package.json +0 -38
  119. package/node_modules/dir-glob/readme.md +0 -76
  120. package/node_modules/fast-glob/LICENSE +0 -21
  121. package/node_modules/fast-glob/README.md +0 -830
  122. package/node_modules/fast-glob/out/index.d.ts +0 -40
  123. package/node_modules/fast-glob/out/index.js +0 -102
  124. package/node_modules/fast-glob/out/managers/tasks.d.ts +0 -22
  125. package/node_modules/fast-glob/out/managers/tasks.js +0 -110
  126. package/node_modules/fast-glob/out/providers/async.d.ts +0 -9
  127. package/node_modules/fast-glob/out/providers/async.js +0 -23
  128. package/node_modules/fast-glob/out/providers/filters/deep.d.ts +0 -16
  129. package/node_modules/fast-glob/out/providers/filters/deep.js +0 -62
  130. package/node_modules/fast-glob/out/providers/filters/entry.d.ts +0 -16
  131. package/node_modules/fast-glob/out/providers/filters/entry.js +0 -63
  132. package/node_modules/fast-glob/out/providers/filters/error.d.ts +0 -8
  133. package/node_modules/fast-glob/out/providers/filters/error.js +0 -15
  134. package/node_modules/fast-glob/out/providers/matchers/matcher.d.ts +0 -33
  135. package/node_modules/fast-glob/out/providers/matchers/matcher.js +0 -45
  136. package/node_modules/fast-glob/out/providers/matchers/partial.d.ts +0 -4
  137. package/node_modules/fast-glob/out/providers/matchers/partial.js +0 -38
  138. package/node_modules/fast-glob/out/providers/provider.d.ts +0 -19
  139. package/node_modules/fast-glob/out/providers/provider.js +0 -48
  140. package/node_modules/fast-glob/out/providers/stream.d.ts +0 -11
  141. package/node_modules/fast-glob/out/providers/stream.js +0 -31
  142. package/node_modules/fast-glob/out/providers/sync.d.ts +0 -9
  143. package/node_modules/fast-glob/out/providers/sync.js +0 -23
  144. package/node_modules/fast-glob/out/providers/transformers/entry.d.ts +0 -8
  145. package/node_modules/fast-glob/out/providers/transformers/entry.js +0 -26
  146. package/node_modules/fast-glob/out/readers/async.d.ts +0 -10
  147. package/node_modules/fast-glob/out/readers/async.js +0 -35
  148. package/node_modules/fast-glob/out/readers/reader.d.ts +0 -15
  149. package/node_modules/fast-glob/out/readers/reader.js +0 -33
  150. package/node_modules/fast-glob/out/readers/stream.d.ts +0 -14
  151. package/node_modules/fast-glob/out/readers/stream.js +0 -55
  152. package/node_modules/fast-glob/out/readers/sync.d.ts +0 -12
  153. package/node_modules/fast-glob/out/readers/sync.js +0 -43
  154. package/node_modules/fast-glob/out/settings.d.ts +0 -164
  155. package/node_modules/fast-glob/out/settings.js +0 -59
  156. package/node_modules/fast-glob/out/types/index.d.ts +0 -31
  157. package/node_modules/fast-glob/out/types/index.js +0 -2
  158. package/node_modules/fast-glob/out/utils/array.d.ts +0 -2
  159. package/node_modules/fast-glob/out/utils/array.js +0 -22
  160. package/node_modules/fast-glob/out/utils/errno.d.ts +0 -2
  161. package/node_modules/fast-glob/out/utils/errno.js +0 -7
  162. package/node_modules/fast-glob/out/utils/fs.d.ts +0 -4
  163. package/node_modules/fast-glob/out/utils/fs.js +0 -19
  164. package/node_modules/fast-glob/out/utils/index.d.ts +0 -8
  165. package/node_modules/fast-glob/out/utils/index.js +0 -17
  166. package/node_modules/fast-glob/out/utils/path.d.ts +0 -13
  167. package/node_modules/fast-glob/out/utils/path.js +0 -68
  168. package/node_modules/fast-glob/out/utils/pattern.d.ts +0 -47
  169. package/node_modules/fast-glob/out/utils/pattern.js +0 -188
  170. package/node_modules/fast-glob/out/utils/stream.d.ts +0 -4
  171. package/node_modules/fast-glob/out/utils/stream.js +0 -17
  172. package/node_modules/fast-glob/out/utils/string.d.ts +0 -2
  173. package/node_modules/fast-glob/out/utils/string.js +0 -11
  174. package/node_modules/fast-glob/package.json +0 -81
  175. package/node_modules/fastq/.github/dependabot.yml +0 -11
  176. package/node_modules/fastq/.github/workflows/ci.yml +0 -75
  177. package/node_modules/fastq/LICENSE +0 -13
  178. package/node_modules/fastq/README.md +0 -306
  179. package/node_modules/fastq/bench.js +0 -66
  180. package/node_modules/fastq/example.js +0 -14
  181. package/node_modules/fastq/example.mjs +0 -11
  182. package/node_modules/fastq/index.d.ts +0 -38
  183. package/node_modules/fastq/package.json +0 -53
  184. package/node_modules/fastq/queue.js +0 -311
  185. package/node_modules/fastq/test/example.ts +0 -83
  186. package/node_modules/fastq/test/promise.js +0 -248
  187. package/node_modules/fastq/test/test.js +0 -642
  188. package/node_modules/fastq/test/tsconfig.json +0 -11
  189. package/node_modules/fill-range/LICENSE +0 -21
  190. package/node_modules/fill-range/README.md +0 -237
  191. package/node_modules/fill-range/index.js +0 -248
  192. package/node_modules/fill-range/package.json +0 -74
  193. package/node_modules/get-tsconfig/LICENSE +0 -21
  194. package/node_modules/get-tsconfig/README.md +0 -235
  195. package/node_modules/get-tsconfig/dist/index.cjs +0 -7
  196. package/node_modules/get-tsconfig/dist/index.d.cts +0 -1439
  197. package/node_modules/get-tsconfig/dist/index.d.mts +0 -1439
  198. package/node_modules/get-tsconfig/dist/index.mjs +0 -7
  199. package/node_modules/get-tsconfig/package.json +0 -46
  200. package/node_modules/glob-parent/CHANGELOG.md +0 -110
  201. package/node_modules/glob-parent/LICENSE +0 -15
  202. package/node_modules/glob-parent/README.md +0 -137
  203. package/node_modules/glob-parent/index.js +0 -42
  204. package/node_modules/glob-parent/package.json +0 -48
  205. package/node_modules/globby/gitignore.js +0 -120
  206. package/node_modules/globby/index.d.ts +0 -186
  207. package/node_modules/globby/index.js +0 -181
  208. package/node_modules/globby/license +0 -9
  209. package/node_modules/globby/package.json +0 -82
  210. package/node_modules/globby/readme.md +0 -170
  211. package/node_modules/globby/stream-utils.js +0 -46
  212. package/node_modules/ignore/LICENSE-MIT +0 -21
  213. package/node_modules/ignore/README.md +0 -412
  214. package/node_modules/ignore/index.d.ts +0 -61
  215. package/node_modules/ignore/index.js +0 -626
  216. package/node_modules/ignore/legacy.js +0 -545
  217. package/node_modules/ignore/package.json +0 -73
  218. package/node_modules/is-binary-path/index.d.ts +0 -17
  219. package/node_modules/is-binary-path/index.js +0 -7
  220. package/node_modules/is-binary-path/license +0 -9
  221. package/node_modules/is-binary-path/package.json +0 -40
  222. package/node_modules/is-binary-path/readme.md +0 -34
  223. package/node_modules/is-extglob/LICENSE +0 -21
  224. package/node_modules/is-extglob/README.md +0 -107
  225. package/node_modules/is-extglob/index.js +0 -20
  226. package/node_modules/is-extglob/package.json +0 -69
  227. package/node_modules/is-glob/LICENSE +0 -21
  228. package/node_modules/is-glob/README.md +0 -206
  229. package/node_modules/is-glob/index.js +0 -150
  230. package/node_modules/is-glob/package.json +0 -81
  231. package/node_modules/is-number/LICENSE +0 -21
  232. package/node_modules/is-number/README.md +0 -187
  233. package/node_modules/is-number/index.js +0 -18
  234. package/node_modules/is-number/package.json +0 -82
  235. package/node_modules/merge2/LICENSE +0 -21
  236. package/node_modules/merge2/README.md +0 -144
  237. package/node_modules/merge2/index.js +0 -144
  238. package/node_modules/merge2/package.json +0 -43
  239. package/node_modules/micromatch/LICENSE +0 -21
  240. package/node_modules/micromatch/README.md +0 -1017
  241. package/node_modules/micromatch/index.js +0 -467
  242. package/node_modules/micromatch/package.json +0 -101
  243. package/node_modules/mylas/LICENSE +0 -21
  244. package/node_modules/mylas/README.md +0 -39
  245. package/node_modules/mylas/build/chunk-3EDNT3AM.js +0 -1
  246. package/node_modules/mylas/build/chunk-M3H36CX2.js +0 -3
  247. package/node_modules/mylas/build/index.d.ts +0 -22
  248. package/node_modules/mylas/build/index.js +0 -1
  249. package/node_modules/mylas/build/interfaces.d.ts +0 -201
  250. package/node_modules/mylas/build/register.d.ts +0 -9
  251. package/node_modules/mylas/build/register.js +0 -1
  252. package/node_modules/mylas/build/worker.js +0 -1
  253. package/node_modules/mylas/package.json +0 -65
  254. package/node_modules/normalize-path/LICENSE +0 -21
  255. package/node_modules/normalize-path/README.md +0 -127
  256. package/node_modules/normalize-path/index.js +0 -35
  257. package/node_modules/normalize-path/package.json +0 -77
  258. package/node_modules/path-type/index.d.ts +0 -51
  259. package/node_modules/path-type/index.js +0 -43
  260. package/node_modules/path-type/license +0 -9
  261. package/node_modules/path-type/package.json +0 -45
  262. package/node_modules/path-type/readme.md +0 -72
  263. package/node_modules/picomatch/CHANGELOG.md +0 -136
  264. package/node_modules/picomatch/LICENSE +0 -21
  265. package/node_modules/picomatch/README.md +0 -708
  266. package/node_modules/picomatch/index.js +0 -3
  267. package/node_modules/picomatch/lib/constants.js +0 -179
  268. package/node_modules/picomatch/lib/parse.js +0 -1091
  269. package/node_modules/picomatch/lib/picomatch.js +0 -342
  270. package/node_modules/picomatch/lib/scan.js +0 -391
  271. package/node_modules/picomatch/lib/utils.js +0 -64
  272. package/node_modules/picomatch/package.json +0 -81
  273. package/node_modules/plimit-lit/LICENSE +0 -21
  274. package/node_modules/plimit-lit/README.md +0 -99
  275. package/node_modules/plimit-lit/dist/index.d.ts +0 -6
  276. package/node_modules/plimit-lit/dist/plimit-lit.cjs +0 -91
  277. package/node_modules/plimit-lit/dist/plimit-lit.modern.js +0 -91
  278. package/node_modules/plimit-lit/dist/plimit-lit.module.js +0 -91
  279. package/node_modules/plimit-lit/package.json +0 -55
  280. package/node_modules/queue-lit/LICENSE +0 -21
  281. package/node_modules/queue-lit/README.md +0 -93
  282. package/node_modules/queue-lit/dist/index.d.ts +0 -34
  283. package/node_modules/queue-lit/dist/queue-lit.cjs +0 -110
  284. package/node_modules/queue-lit/dist/queue-lit.modern.js +0 -110
  285. package/node_modules/queue-lit/dist/queue-lit.module.js +0 -110
  286. package/node_modules/queue-lit/package.json +0 -53
  287. package/node_modules/queue-microtask/LICENSE +0 -20
  288. package/node_modules/queue-microtask/README.md +0 -90
  289. package/node_modules/queue-microtask/index.d.ts +0 -2
  290. package/node_modules/queue-microtask/index.js +0 -9
  291. package/node_modules/queue-microtask/package.json +0 -55
  292. package/node_modules/readdirp/LICENSE +0 -21
  293. package/node_modules/readdirp/README.md +0 -122
  294. package/node_modules/readdirp/index.d.ts +0 -43
  295. package/node_modules/readdirp/index.js +0 -287
  296. package/node_modules/readdirp/package.json +0 -122
  297. package/node_modules/resolve-pkg-maps/LICENSE +0 -21
  298. package/node_modules/resolve-pkg-maps/README.md +0 -216
  299. package/node_modules/resolve-pkg-maps/dist/index.cjs +0 -1
  300. package/node_modules/resolve-pkg-maps/dist/index.d.cts +0 -11
  301. package/node_modules/resolve-pkg-maps/dist/index.d.mts +0 -11
  302. package/node_modules/resolve-pkg-maps/dist/index.mjs +0 -1
  303. package/node_modules/resolve-pkg-maps/package.json +0 -42
  304. package/node_modules/reusify/.coveralls.yml +0 -1
  305. package/node_modules/reusify/.travis.yml +0 -28
  306. package/node_modules/reusify/LICENSE +0 -22
  307. package/node_modules/reusify/README.md +0 -145
  308. package/node_modules/reusify/benchmarks/createNoCodeFunction.js +0 -30
  309. package/node_modules/reusify/benchmarks/fib.js +0 -13
  310. package/node_modules/reusify/benchmarks/reuseNoCodeFunction.js +0 -38
  311. package/node_modules/reusify/package.json +0 -45
  312. package/node_modules/reusify/reusify.js +0 -33
  313. package/node_modules/reusify/test.js +0 -66
  314. package/node_modules/run-parallel/LICENSE +0 -20
  315. package/node_modules/run-parallel/README.md +0 -85
  316. package/node_modules/run-parallel/index.js +0 -51
  317. package/node_modules/run-parallel/package.json +0 -58
  318. package/node_modules/slash/index.d.ts +0 -25
  319. package/node_modules/slash/index.js +0 -11
  320. package/node_modules/slash/license +0 -9
  321. package/node_modules/slash/package.json +0 -35
  322. package/node_modules/slash/readme.md +0 -44
  323. package/node_modules/to-regex-range/LICENSE +0 -21
  324. package/node_modules/to-regex-range/README.md +0 -305
  325. package/node_modules/to-regex-range/index.js +0 -288
  326. package/node_modules/to-regex-range/package.json +0 -88
  327. package/node_modules/tsc-alias/LICENSE +0 -21
  328. package/node_modules/tsc-alias/README.md +0 -184
  329. package/node_modules/tsc-alias/dist/bin/index.d.ts +0 -2
  330. package/node_modules/tsc-alias/dist/bin/index.js +0 -39
  331. package/node_modules/tsc-alias/dist/bin/index.js.map +0 -1
  332. package/node_modules/tsc-alias/dist/helpers/config.d.ts +0 -5
  333. package/node_modules/tsc-alias/dist/helpers/config.js +0 -181
  334. package/node_modules/tsc-alias/dist/helpers/config.js.map +0 -1
  335. package/node_modules/tsc-alias/dist/helpers/index.d.ts +0 -3
  336. package/node_modules/tsc-alias/dist/helpers/index.js +0 -20
  337. package/node_modules/tsc-alias/dist/helpers/index.js.map +0 -1
  338. package/node_modules/tsc-alias/dist/helpers/path.d.ts +0 -3
  339. package/node_modules/tsc-alias/dist/helpers/path.js +0 -73
  340. package/node_modules/tsc-alias/dist/helpers/path.js.map +0 -1
  341. package/node_modules/tsc-alias/dist/helpers/replacers.d.ts +0 -4
  342. package/node_modules/tsc-alias/dist/helpers/replacers.js +0 -150
  343. package/node_modules/tsc-alias/dist/helpers/replacers.js.map +0 -1
  344. package/node_modules/tsc-alias/dist/index.d.ts +0 -8
  345. package/node_modules/tsc-alias/dist/index.js +0 -74
  346. package/node_modules/tsc-alias/dist/index.js.map +0 -1
  347. package/node_modules/tsc-alias/dist/interfaces.d.ts +0 -87
  348. package/node_modules/tsc-alias/dist/interfaces.js +0 -3
  349. package/node_modules/tsc-alias/dist/interfaces.js.map +0 -1
  350. package/node_modules/tsc-alias/dist/replacers/base-url.replacer.d.ts +0 -2
  351. package/node_modules/tsc-alias/dist/replacers/base-url.replacer.js +0 -33
  352. package/node_modules/tsc-alias/dist/replacers/base-url.replacer.js.map +0 -1
  353. package/node_modules/tsc-alias/dist/replacers/default.replacer.d.ts +0 -2
  354. package/node_modules/tsc-alias/dist/replacers/default.replacer.js +0 -67
  355. package/node_modules/tsc-alias/dist/replacers/default.replacer.js.map +0 -1
  356. package/node_modules/tsc-alias/dist/utils/import-path-resolver.d.ts +0 -19
  357. package/node_modules/tsc-alias/dist/utils/import-path-resolver.js +0 -87
  358. package/node_modules/tsc-alias/dist/utils/import-path-resolver.js.map +0 -1
  359. package/node_modules/tsc-alias/dist/utils/index.d.ts +0 -4
  360. package/node_modules/tsc-alias/dist/utils/index.js +0 -21
  361. package/node_modules/tsc-alias/dist/utils/index.js.map +0 -1
  362. package/node_modules/tsc-alias/dist/utils/output.d.ts +0 -11
  363. package/node_modules/tsc-alias/dist/utils/output.js +0 -44
  364. package/node_modules/tsc-alias/dist/utils/output.js.map +0 -1
  365. package/node_modules/tsc-alias/dist/utils/path-cache.d.ts +0 -12
  366. package/node_modules/tsc-alias/dist/utils/path-cache.js +0 -74
  367. package/node_modules/tsc-alias/dist/utils/path-cache.js.map +0 -1
  368. package/node_modules/tsc-alias/dist/utils/trie.d.ts +0 -9
  369. package/node_modules/tsc-alias/dist/utils/trie.js +0 -81
  370. package/node_modules/tsc-alias/dist/utils/trie.js.map +0 -1
  371. package/node_modules/tsc-alias/package.json +0 -66
  372. package/node_modules/typescript/LICENSE.txt +0 -55
  373. package/node_modules/typescript/README.md +0 -50
  374. package/node_modules/typescript/SECURITY.md +0 -41
  375. package/node_modules/typescript/ThirdPartyNoticeText.txt +0 -193
  376. package/node_modules/typescript/bin/tsc +0 -2
  377. package/node_modules/typescript/bin/tsserver +0 -2
  378. package/node_modules/typescript/lib/_tsc.js +0 -132810
  379. package/node_modules/typescript/lib/_tsserver.js +0 -659
  380. package/node_modules/typescript/lib/_typingsInstaller.js +0 -222
  381. package/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +0 -2105
  382. package/node_modules/typescript/lib/de/diagnosticMessages.generated.json +0 -2105
  383. package/node_modules/typescript/lib/es/diagnosticMessages.generated.json +0 -2105
  384. package/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +0 -2105
  385. package/node_modules/typescript/lib/it/diagnosticMessages.generated.json +0 -2105
  386. package/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +0 -2105
  387. package/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +0 -2105
  388. package/node_modules/typescript/lib/lib.d.ts +0 -22
  389. package/node_modules/typescript/lib/lib.decorators.d.ts +0 -384
  390. package/node_modules/typescript/lib/lib.decorators.legacy.d.ts +0 -22
  391. package/node_modules/typescript/lib/lib.dom.asynciterable.d.ts +0 -41
  392. package/node_modules/typescript/lib/lib.dom.d.ts +0 -29610
  393. package/node_modules/typescript/lib/lib.dom.iterable.d.ts +0 -493
  394. package/node_modules/typescript/lib/lib.es2015.collection.d.ts +0 -147
  395. package/node_modules/typescript/lib/lib.es2015.core.d.ts +0 -597
  396. package/node_modules/typescript/lib/lib.es2015.d.ts +0 -28
  397. package/node_modules/typescript/lib/lib.es2015.generator.d.ts +0 -77
  398. package/node_modules/typescript/lib/lib.es2015.iterable.d.ts +0 -605
  399. package/node_modules/typescript/lib/lib.es2015.promise.d.ts +0 -81
  400. package/node_modules/typescript/lib/lib.es2015.proxy.d.ts +0 -128
  401. package/node_modules/typescript/lib/lib.es2015.reflect.d.ts +0 -144
  402. package/node_modules/typescript/lib/lib.es2015.symbol.d.ts +0 -46
  403. package/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts +0 -326
  404. package/node_modules/typescript/lib/lib.es2016.array.include.d.ts +0 -116
  405. package/node_modules/typescript/lib/lib.es2016.d.ts +0 -21
  406. package/node_modules/typescript/lib/lib.es2016.full.d.ts +0 -23
  407. package/node_modules/typescript/lib/lib.es2016.intl.d.ts +0 -31
  408. package/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts +0 -21
  409. package/node_modules/typescript/lib/lib.es2017.d.ts +0 -26
  410. package/node_modules/typescript/lib/lib.es2017.date.d.ts +0 -31
  411. package/node_modules/typescript/lib/lib.es2017.full.d.ts +0 -23
  412. package/node_modules/typescript/lib/lib.es2017.intl.d.ts +0 -44
  413. package/node_modules/typescript/lib/lib.es2017.object.d.ts +0 -49
  414. package/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts +0 -135
  415. package/node_modules/typescript/lib/lib.es2017.string.d.ts +0 -45
  416. package/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts +0 -53
  417. package/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts +0 -77
  418. package/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts +0 -53
  419. package/node_modules/typescript/lib/lib.es2018.d.ts +0 -24
  420. package/node_modules/typescript/lib/lib.es2018.full.d.ts +0 -24
  421. package/node_modules/typescript/lib/lib.es2018.intl.d.ts +0 -83
  422. package/node_modules/typescript/lib/lib.es2018.promise.d.ts +0 -30
  423. package/node_modules/typescript/lib/lib.es2018.regexp.d.ts +0 -37
  424. package/node_modules/typescript/lib/lib.es2019.array.d.ts +0 -79
  425. package/node_modules/typescript/lib/lib.es2019.d.ts +0 -24
  426. package/node_modules/typescript/lib/lib.es2019.full.d.ts +0 -24
  427. package/node_modules/typescript/lib/lib.es2019.intl.d.ts +0 -23
  428. package/node_modules/typescript/lib/lib.es2019.object.d.ts +0 -33
  429. package/node_modules/typescript/lib/lib.es2019.string.d.ts +0 -37
  430. package/node_modules/typescript/lib/lib.es2019.symbol.d.ts +0 -24
  431. package/node_modules/typescript/lib/lib.es2020.bigint.d.ts +0 -765
  432. package/node_modules/typescript/lib/lib.es2020.d.ts +0 -27
  433. package/node_modules/typescript/lib/lib.es2020.date.d.ts +0 -42
  434. package/node_modules/typescript/lib/lib.es2020.full.d.ts +0 -24
  435. package/node_modules/typescript/lib/lib.es2020.intl.d.ts +0 -474
  436. package/node_modules/typescript/lib/lib.es2020.number.d.ts +0 -28
  437. package/node_modules/typescript/lib/lib.es2020.promise.d.ts +0 -47
  438. package/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts +0 -99
  439. package/node_modules/typescript/lib/lib.es2020.string.d.ts +0 -44
  440. package/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts +0 -41
  441. package/node_modules/typescript/lib/lib.es2021.d.ts +0 -23
  442. package/node_modules/typescript/lib/lib.es2021.full.d.ts +0 -24
  443. package/node_modules/typescript/lib/lib.es2021.intl.d.ts +0 -166
  444. package/node_modules/typescript/lib/lib.es2021.promise.d.ts +0 -48
  445. package/node_modules/typescript/lib/lib.es2021.string.d.ts +0 -33
  446. package/node_modules/typescript/lib/lib.es2021.weakref.d.ts +0 -78
  447. package/node_modules/typescript/lib/lib.es2022.array.d.ts +0 -121
  448. package/node_modules/typescript/lib/lib.es2022.d.ts +0 -25
  449. package/node_modules/typescript/lib/lib.es2022.error.d.ts +0 -75
  450. package/node_modules/typescript/lib/lib.es2022.full.d.ts +0 -24
  451. package/node_modules/typescript/lib/lib.es2022.intl.d.ts +0 -121
  452. package/node_modules/typescript/lib/lib.es2022.object.d.ts +0 -26
  453. package/node_modules/typescript/lib/lib.es2022.regexp.d.ts +0 -39
  454. package/node_modules/typescript/lib/lib.es2022.string.d.ts +0 -25
  455. package/node_modules/typescript/lib/lib.es2023.array.d.ts +0 -924
  456. package/node_modules/typescript/lib/lib.es2023.collection.d.ts +0 -21
  457. package/node_modules/typescript/lib/lib.es2023.d.ts +0 -22
  458. package/node_modules/typescript/lib/lib.es2023.full.d.ts +0 -24
  459. package/node_modules/typescript/lib/lib.es2023.intl.d.ts +0 -56
  460. package/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts +0 -65
  461. package/node_modules/typescript/lib/lib.es2024.collection.d.ts +0 -29
  462. package/node_modules/typescript/lib/lib.es2024.d.ts +0 -26
  463. package/node_modules/typescript/lib/lib.es2024.full.d.ts +0 -24
  464. package/node_modules/typescript/lib/lib.es2024.object.d.ts +0 -29
  465. package/node_modules/typescript/lib/lib.es2024.promise.d.ts +0 -35
  466. package/node_modules/typescript/lib/lib.es2024.regexp.d.ts +0 -25
  467. package/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts +0 -68
  468. package/node_modules/typescript/lib/lib.es2024.string.d.ts +0 -29
  469. package/node_modules/typescript/lib/lib.es5.d.ts +0 -4594
  470. package/node_modules/typescript/lib/lib.es6.d.ts +0 -23
  471. package/node_modules/typescript/lib/lib.esnext.array.d.ts +0 -35
  472. package/node_modules/typescript/lib/lib.esnext.collection.d.ts +0 -96
  473. package/node_modules/typescript/lib/lib.esnext.d.ts +0 -27
  474. package/node_modules/typescript/lib/lib.esnext.decorators.d.ts +0 -28
  475. package/node_modules/typescript/lib/lib.esnext.disposable.d.ts +0 -193
  476. package/node_modules/typescript/lib/lib.esnext.float16.d.ts +0 -443
  477. package/node_modules/typescript/lib/lib.esnext.full.d.ts +0 -24
  478. package/node_modules/typescript/lib/lib.esnext.intl.d.ts +0 -21
  479. package/node_modules/typescript/lib/lib.esnext.iterator.d.ts +0 -148
  480. package/node_modules/typescript/lib/lib.esnext.promise.d.ts +0 -34
  481. package/node_modules/typescript/lib/lib.scripthost.d.ts +0 -322
  482. package/node_modules/typescript/lib/lib.webworker.asynciterable.d.ts +0 -41
  483. package/node_modules/typescript/lib/lib.webworker.d.ts +0 -9894
  484. package/node_modules/typescript/lib/lib.webworker.importscripts.d.ts +0 -23
  485. package/node_modules/typescript/lib/lib.webworker.iterable.d.ts +0 -287
  486. package/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +0 -2105
  487. package/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +0 -2105
  488. package/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +0 -2105
  489. package/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +0 -2105
  490. package/node_modules/typescript/lib/tsc.js +0 -8
  491. package/node_modules/typescript/lib/tsserver.js +0 -8
  492. package/node_modules/typescript/lib/tsserverlibrary.d.ts +0 -17
  493. package/node_modules/typescript/lib/tsserverlibrary.js +0 -21
  494. package/node_modules/typescript/lib/typesMap.json +0 -497
  495. package/node_modules/typescript/lib/typescript.d.ts +0 -11399
  496. package/node_modules/typescript/lib/typescript.js +0 -199120
  497. package/node_modules/typescript/lib/typingsInstaller.js +0 -8
  498. package/node_modules/typescript/lib/watchGuard.js +0 -53
  499. package/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +0 -2105
  500. package/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +0 -2105
  501. package/node_modules/typescript/package.json +0 -120
@@ -1,1017 +0,0 @@
1
- # micromatch [![NPM version](https://img.shields.io/npm/v/micromatch.svg?style=flat)](https://www.npmjs.com/package/micromatch) [![NPM monthly downloads](https://img.shields.io/npm/dm/micromatch.svg?style=flat)](https://npmjs.org/package/micromatch) [![NPM total downloads](https://img.shields.io/npm/dt/micromatch.svg?style=flat)](https://npmjs.org/package/micromatch) [![Tests](https://github.com/micromatch/micromatch/actions/workflows/test.yml/badge.svg)](https://github.com/micromatch/micromatch/actions/workflows/test.yml)
2
-
3
- > Glob matching for javascript/node.js. A replacement and faster alternative to minimatch and multimatch.
4
-
5
- Please consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support.
6
-
7
- ## Table of Contents
8
-
9
- <details>
10
- <summary><strong>Details</strong></summary>
11
-
12
- * [Install](#install)
13
- - [Sponsors](#sponsors)
14
- * [Gold Sponsors](#gold-sponsors)
15
- * [Quickstart](#quickstart)
16
- * [Why use micromatch?](#why-use-micromatch)
17
- + [Matching features](#matching-features)
18
- * [Switching to micromatch](#switching-to-micromatch)
19
- + [From minimatch](#from-minimatch)
20
- + [From multimatch](#from-multimatch)
21
- * [API](#api)
22
- * [Options](#options)
23
- * [Options Examples](#options-examples)
24
- + [options.basename](#optionsbasename)
25
- + [options.bash](#optionsbash)
26
- + [options.expandRange](#optionsexpandrange)
27
- + [options.format](#optionsformat)
28
- + [options.ignore](#optionsignore)
29
- + [options.matchBase](#optionsmatchbase)
30
- + [options.noextglob](#optionsnoextglob)
31
- + [options.nonegate](#optionsnonegate)
32
- + [options.noglobstar](#optionsnoglobstar)
33
- + [options.nonull](#optionsnonull)
34
- + [options.nullglob](#optionsnullglob)
35
- + [options.onIgnore](#optionsonignore)
36
- + [options.onMatch](#optionsonmatch)
37
- + [options.onResult](#optionsonresult)
38
- + [options.posixSlashes](#optionsposixslashes)
39
- + [options.unescape](#optionsunescape)
40
- * [Extended globbing](#extended-globbing)
41
- + [Extglobs](#extglobs)
42
- + [Braces](#braces)
43
- + [Regex character classes](#regex-character-classes)
44
- + [Regex groups](#regex-groups)
45
- + [POSIX bracket expressions](#posix-bracket-expressions)
46
- * [Notes](#notes)
47
- + [Bash 4.3 parity](#bash-43-parity)
48
- + [Backslashes](#backslashes)
49
- * [Benchmarks](#benchmarks)
50
- + [Running benchmarks](#running-benchmarks)
51
- + [Latest results](#latest-results)
52
- * [Contributing](#contributing)
53
- * [About](#about)
54
-
55
- </details>
56
-
57
- ## Install
58
-
59
- Install with [npm](https://www.npmjs.com/) (requires [Node.js](https://nodejs.org/en/) >=8.6):
60
-
61
- ```sh
62
- $ npm install --save micromatch
63
- ```
64
-
65
- <br />
66
-
67
- # Sponsors
68
-
69
- [Become a Sponsor](https://github.com/sponsors/jonschlinkert) to add your logo to this README, or any of [my other projects](https://github.com/jonschlinkert?tab=repositories&q=&type=&language=&sort=stargazers)
70
-
71
- <br />
72
-
73
- ## Quickstart
74
-
75
- ```js
76
- const micromatch = require('micromatch');
77
- // micromatch(list, patterns[, options]);
78
- ```
79
-
80
- The [main export](#micromatch) takes a list of strings and one or more glob patterns:
81
-
82
- ```js
83
- console.log(micromatch(['foo', 'bar', 'baz', 'qux'], ['f*', 'b*'])) //=> ['foo', 'bar', 'baz']
84
- console.log(micromatch(['foo', 'bar', 'baz', 'qux'], ['*', '!b*'])) //=> ['foo', 'qux']
85
- ```
86
-
87
- Use [.isMatch()](#ismatch) to for boolean matching:
88
-
89
- ```js
90
- console.log(micromatch.isMatch('foo', 'f*')) //=> true
91
- console.log(micromatch.isMatch('foo', ['b*', 'f*'])) //=> true
92
- ```
93
-
94
- [Switching](#switching-to-micromatch) from minimatch and multimatch is easy!
95
-
96
- <br>
97
-
98
- ## Why use micromatch?
99
-
100
- > micromatch is a [replacement](#switching-to-micromatch) for minimatch and multimatch
101
-
102
- - Supports all of the same matching features as [minimatch][] and [multimatch][]
103
- - More complete support for the Bash 4.3 specification than minimatch and multimatch. Micromatch passes _all of the spec tests_ from bash, including some that bash still fails.
104
- - **Fast & Performant** - Loads in about 5ms and performs [fast matches](#benchmarks).
105
- - **Glob matching** - Using wildcards (`*` and `?`), globstars (`**`) for nested directories
106
- - **[Advanced globbing](#extended-globbing)** - Supports [extglobs](#extglobs), [braces](#braces-1), and [POSIX brackets](#posix-bracket-expressions), and support for escaping special characters with `\` or quotes.
107
- - **Accurate** - Covers more scenarios [than minimatch](https://github.com/yarnpkg/yarn/pull/3339)
108
- - **Well tested** - More than 5,000 [test assertions](./test)
109
- - **Windows support** - More reliable windows support than minimatch and multimatch.
110
- - **[Safe][braces]{#braces-is-safe}** - Micromatch is not subject to DoS with brace patterns like minimatch and multimatch.
111
-
112
- ### Matching features
113
-
114
- * Support for multiple glob patterns (no need for wrappers like multimatch)
115
- * Wildcards (`**`, `*.js`)
116
- * Negation (`'!a/*.js'`, `'*!(b).js'`)
117
- * [extglobs](#extglobs) (`+(x|y)`, `!(a|b)`)
118
- * [POSIX character classes](#posix-bracket-expressions) (`[[:alpha:][:digit:]]`)
119
- * [brace expansion][braces] (`foo/{1..5}.md`, `bar/{a,b,c}.js`)
120
- * regex character classes (`foo-[1-5].js`)
121
- * regex logical "or" (`foo/(abc|xyz).js`)
122
-
123
- You can mix and match these features to create whatever patterns you need!
124
-
125
- ## Switching to micromatch
126
-
127
- _(There is one notable difference between micromatch and minimatch in regards to how backslashes are handled. See [the notes about backslashes](#backslashes) for more information.)_
128
-
129
- ### From minimatch
130
-
131
- Use [micromatch.isMatch()](#ismatch) instead of `minimatch()`:
132
-
133
- ```js
134
- console.log(micromatch.isMatch('foo', 'b*')); //=> false
135
- ```
136
-
137
- Use [micromatch.match()](#match) instead of `minimatch.match()`:
138
-
139
- ```js
140
- console.log(micromatch.match(['foo', 'bar'], 'b*')); //=> 'bar'
141
- ```
142
-
143
- ### From multimatch
144
-
145
- Same signature:
146
-
147
- ```js
148
- console.log(micromatch(['foo', 'bar', 'baz'], ['f*', '*z'])); //=> ['foo', 'baz']
149
- ```
150
-
151
- ## API
152
-
153
- **Params**
154
-
155
- * `list` **{String|Array<string>}**: List of strings to match.
156
- * `patterns` **{String|Array<string>}**: One or more glob patterns to use for matching.
157
- * `options` **{Object}**: See available [options](#options)
158
- * `returns` **{Array}**: Returns an array of matches
159
-
160
- **Example**
161
-
162
- ```js
163
- const mm = require('micromatch');
164
- // mm(list, patterns[, options]);
165
-
166
- console.log(mm(['a.js', 'a.txt'], ['*.js']));
167
- //=> [ 'a.js' ]
168
- ```
169
-
170
- ### [.matcher](index.js#L104)
171
- Returns a matcher function from the given glob `pattern` and `options`. The returned function takes a string to match as its only argument and returns true if the string is a match.
172
-
173
- **Params**
174
-
175
- * `pattern` **{String}**: Glob pattern
176
- * `options` **{Object}**
177
- * `returns` **{Function}**: Returns a matcher function.
178
-
179
- **Example**
180
-
181
- ```js
182
- const mm = require('micromatch');
183
- // mm.matcher(pattern[, options]);
184
-
185
- const isMatch = mm.matcher('*.!(*a)');
186
- console.log(isMatch('a.a')); //=> false
187
- console.log(isMatch('a.b')); //=> true
188
- ```
189
-
190
- ### [.isMatch](index.js#L123)
191
- Returns true if **any** of the given glob `patterns` match the specified `string`.
192
-
193
- **Params**
194
-
195
- * `str` **{String}**: The string to test.
196
- * `patterns` **{String|Array}**: One or more glob patterns to use for matching.
197
- * `[options]` **{Object}**: See available [options](#options).
198
- * `returns` **{Boolean}**: Returns true if any patterns match `str`
199
-
200
- **Example**
201
-
202
- ```js
203
- const mm = require('micromatch');
204
- // mm.isMatch(string, patterns[, options]);
205
-
206
- console.log(mm.isMatch('a.a', ['b.*', '*.a'])); //=> true
207
- console.log(mm.isMatch('a.a', 'b.*')); //=> false
208
- ```
209
-
210
- ### [.not](index.js#L148)
211
- Returns a list of strings that _**do not match any**_ of the given `patterns`.
212
-
213
- **Params**
214
-
215
- * `list` **{Array}**: Array of strings to match.
216
- * `patterns` **{String|Array}**: One or more glob pattern to use for matching.
217
- * `options` **{Object}**: See available [options](#options) for changing how matches are performed
218
- * `returns` **{Array}**: Returns an array of strings that **do not match** the given patterns.
219
-
220
- **Example**
221
-
222
- ```js
223
- const mm = require('micromatch');
224
- // mm.not(list, patterns[, options]);
225
-
226
- console.log(mm.not(['a.a', 'b.b', 'c.c'], '*.a'));
227
- //=> ['b.b', 'c.c']
228
- ```
229
-
230
- ### [.contains](index.js#L188)
231
- Returns true if the given `string` contains the given pattern. Similar to [.isMatch](#isMatch) but the pattern can match any part of the string.
232
-
233
- **Params**
234
-
235
- * `str` **{String}**: The string to match.
236
- * `patterns` **{String|Array}**: Glob pattern to use for matching.
237
- * `options` **{Object}**: See available [options](#options) for changing how matches are performed
238
- * `returns` **{Boolean}**: Returns true if any of the patterns matches any part of `str`.
239
-
240
- **Example**
241
-
242
- ```js
243
- var mm = require('micromatch');
244
- // mm.contains(string, pattern[, options]);
245
-
246
- console.log(mm.contains('aa/bb/cc', '*b'));
247
- //=> true
248
- console.log(mm.contains('aa/bb/cc', '*d'));
249
- //=> false
250
- ```
251
-
252
- ### [.matchKeys](index.js#L230)
253
- Filter the keys of the given object with the given `glob` pattern and `options`. Does not attempt to match nested keys. If you need this feature, use [glob-object][] instead.
254
-
255
- **Params**
256
-
257
- * `object` **{Object}**: The object with keys to filter.
258
- * `patterns` **{String|Array}**: One or more glob patterns to use for matching.
259
- * `options` **{Object}**: See available [options](#options) for changing how matches are performed
260
- * `returns` **{Object}**: Returns an object with only keys that match the given patterns.
261
-
262
- **Example**
263
-
264
- ```js
265
- const mm = require('micromatch');
266
- // mm.matchKeys(object, patterns[, options]);
267
-
268
- const obj = { aa: 'a', ab: 'b', ac: 'c' };
269
- console.log(mm.matchKeys(obj, '*b'));
270
- //=> { ab: 'b' }
271
- ```
272
-
273
- ### [.some](index.js#L259)
274
- Returns true if some of the strings in the given `list` match any of the given glob `patterns`.
275
-
276
- **Params**
277
-
278
- * `list` **{String|Array}**: The string or array of strings to test. Returns as soon as the first match is found.
279
- * `patterns` **{String|Array}**: One or more glob patterns to use for matching.
280
- * `options` **{Object}**: See available [options](#options) for changing how matches are performed
281
- * `returns` **{Boolean}**: Returns true if any `patterns` matches any of the strings in `list`
282
-
283
- **Example**
284
-
285
- ```js
286
- const mm = require('micromatch');
287
- // mm.some(list, patterns[, options]);
288
-
289
- console.log(mm.some(['foo.js', 'bar.js'], ['*.js', '!foo.js']));
290
- // true
291
- console.log(mm.some(['foo.js'], ['*.js', '!foo.js']));
292
- // false
293
- ```
294
-
295
- ### [.every](index.js#L295)
296
- Returns true if every string in the given `list` matches any of the given glob `patterns`.
297
-
298
- **Params**
299
-
300
- * `list` **{String|Array}**: The string or array of strings to test.
301
- * `patterns` **{String|Array}**: One or more glob patterns to use for matching.
302
- * `options` **{Object}**: See available [options](#options) for changing how matches are performed
303
- * `returns` **{Boolean}**: Returns true if all `patterns` matches all of the strings in `list`
304
-
305
- **Example**
306
-
307
- ```js
308
- const mm = require('micromatch');
309
- // mm.every(list, patterns[, options]);
310
-
311
- console.log(mm.every('foo.js', ['foo.js']));
312
- // true
313
- console.log(mm.every(['foo.js', 'bar.js'], ['*.js']));
314
- // true
315
- console.log(mm.every(['foo.js', 'bar.js'], ['*.js', '!foo.js']));
316
- // false
317
- console.log(mm.every(['foo.js'], ['*.js', '!foo.js']));
318
- // false
319
- ```
320
-
321
- ### [.all](index.js#L334)
322
- Returns true if **all** of the given `patterns` match the specified string.
323
-
324
- **Params**
325
-
326
- * `str` **{String|Array}**: The string to test.
327
- * `patterns` **{String|Array}**: One or more glob patterns to use for matching.
328
- * `options` **{Object}**: See available [options](#options) for changing how matches are performed
329
- * `returns` **{Boolean}**: Returns true if any patterns match `str`
330
-
331
- **Example**
332
-
333
- ```js
334
- const mm = require('micromatch');
335
- // mm.all(string, patterns[, options]);
336
-
337
- console.log(mm.all('foo.js', ['foo.js']));
338
- // true
339
-
340
- console.log(mm.all('foo.js', ['*.js', '!foo.js']));
341
- // false
342
-
343
- console.log(mm.all('foo.js', ['*.js', 'foo.js']));
344
- // true
345
-
346
- console.log(mm.all('foo.js', ['*.js', 'f*', '*o*', '*o.js']));
347
- // true
348
- ```
349
-
350
- ### [.capture](index.js#L361)
351
- Returns an array of matches captured by `pattern` in `string, or `null` if the pattern did not match.
352
-
353
- **Params**
354
-
355
- * `glob` **{String}**: Glob pattern to use for matching.
356
- * `input` **{String}**: String to match
357
- * `options` **{Object}**: See available [options](#options) for changing how matches are performed
358
- * `returns` **{Array|null}**: Returns an array of captures if the input matches the glob pattern, otherwise `null`.
359
-
360
- **Example**
361
-
362
- ```js
363
- const mm = require('micromatch');
364
- // mm.capture(pattern, string[, options]);
365
-
366
- console.log(mm.capture('test/*.js', 'test/foo.js'));
367
- //=> ['foo']
368
- console.log(mm.capture('test/*.js', 'foo/bar.css'));
369
- //=> null
370
- ```
371
-
372
- ### [.makeRe](index.js#L387)
373
- Create a regular expression from the given glob `pattern`.
374
-
375
- **Params**
376
-
377
- * `pattern` **{String}**: A glob pattern to convert to regex.
378
- * `options` **{Object}**
379
- * `returns` **{RegExp}**: Returns a regex created from the given pattern.
380
-
381
- **Example**
382
-
383
- ```js
384
- const mm = require('micromatch');
385
- // mm.makeRe(pattern[, options]);
386
-
387
- console.log(mm.makeRe('*.js'));
388
- //=> /^(?:(\.[\\\/])?(?!\.)(?=.)[^\/]*?\.js)$/
389
- ```
390
-
391
- ### [.scan](index.js#L403)
392
- Scan a glob pattern to separate the pattern into segments. Used by the [split](#split) method.
393
-
394
- **Params**
395
-
396
- * `pattern` **{String}**
397
- * `options` **{Object}**
398
- * `returns` **{Object}**: Returns an object with
399
-
400
- **Example**
401
-
402
- ```js
403
- const mm = require('micromatch');
404
- const state = mm.scan(pattern[, options]);
405
- ```
406
-
407
- ### [.parse](index.js#L419)
408
- Parse a glob pattern to create the source string for a regular expression.
409
-
410
- **Params**
411
-
412
- * `glob` **{String}**
413
- * `options` **{Object}**
414
- * `returns` **{Object}**: Returns an object with useful properties and output to be used as regex source string.
415
-
416
- **Example**
417
-
418
- ```js
419
- const mm = require('micromatch');
420
- const state = mm.parse(pattern[, options]);
421
- ```
422
-
423
- ### [.braces](index.js#L446)
424
- Process the given brace `pattern`.
425
-
426
- **Params**
427
-
428
- * `pattern` **{String}**: String with brace pattern to process.
429
- * `options` **{Object}**: Any [options](#options) to change how expansion is performed. See the [braces][] library for all available options.
430
- * `returns` **{Array}**
431
-
432
- **Example**
433
-
434
- ```js
435
- const { braces } = require('micromatch');
436
- console.log(braces('foo/{a,b,c}/bar'));
437
- //=> [ 'foo/(a|b|c)/bar' ]
438
-
439
- console.log(braces('foo/{a,b,c}/bar', { expand: true }));
440
- //=> [ 'foo/a/bar', 'foo/b/bar', 'foo/c/bar' ]
441
- ```
442
-
443
- ## Options
444
-
445
- | **Option** | **Type** | **Default value** | **Description** |
446
- | --- | --- | --- | --- |
447
- | `basename` | `boolean` | `false` | If set, then patterns without slashes will be matched against the basename of the path if it contains slashes. For example, `a?b` would match the path `/xyz/123/acb`, but not `/xyz/acb/123`. |
448
- | `bash` | `boolean` | `false` | Follow bash matching rules more strictly - disallows backslashes as escape characters, and treats single stars as globstars (`**`). |
449
- | `capture` | `boolean` | `undefined` | Return regex matches in supporting methods. |
450
- | `contains` | `boolean` | `undefined` | Allows glob to match any part of the given string(s). |
451
- | `cwd` | `string` | `process.cwd()` | Current working directory. Used by `picomatch.split()` |
452
- | `debug` | `boolean` | `undefined` | Debug regular expressions when an error is thrown. |
453
- | `dot` | `boolean` | `false` | Match dotfiles. Otherwise dotfiles are ignored unless a `.` is explicitly defined in the pattern. |
454
- | `expandRange` | `function` | `undefined` | Custom function for expanding ranges in brace patterns, such as `{a..z}`. The function receives the range values as two arguments, and it must return a string to be used in the generated regex. It's recommended that returned strings be wrapped in parentheses. This option is overridden by the `expandBrace` option. |
455
- | `failglob` | `boolean` | `false` | Similar to the `failglob` behavior in Bash, throws an error when no matches are found. Based on the bash option of the same name. |
456
- | `fastpaths` | `boolean` | `true` | To speed up processing, full parsing is skipped for a handful common glob patterns. Disable this behavior by setting this option to `false`. |
457
- | `flags` | `boolean` | `undefined` | Regex flags to use in the generated regex. If defined, the `nocase` option will be overridden. |
458
- | [format](#optionsformat) | `function` | `undefined` | Custom function for formatting the returned string. This is useful for removing leading slashes, converting Windows paths to Posix paths, etc. |
459
- | `ignore` | `array\|string` | `undefined` | One or more glob patterns for excluding strings that should not be matched from the result. |
460
- | `keepQuotes` | `boolean` | `false` | Retain quotes in the generated regex, since quotes may also be used as an alternative to backslashes. |
461
- | `literalBrackets` | `boolean` | `undefined` | When `true`, brackets in the glob pattern will be escaped so that only literal brackets will be matched. |
462
- | `lookbehinds` | `boolean` | `true` | Support regex positive and negative lookbehinds. Note that you must be using Node 8.1.10 or higher to enable regex lookbehinds. |
463
- | `matchBase` | `boolean` | `false` | Alias for `basename` |
464
- | `maxLength` | `boolean` | `65536` | Limit the max length of the input string. An error is thrown if the input string is longer than this value. |
465
- | `nobrace` | `boolean` | `false` | Disable brace matching, so that `{a,b}` and `{1..3}` would be treated as literal characters. |
466
- | `nobracket` | `boolean` | `undefined` | Disable matching with regex brackets. |
467
- | `nocase` | `boolean` | `false` | Perform case-insensitive matching. Equivalent to the regex `i` flag. Note that this option is ignored when the `flags` option is defined. |
468
- | `nodupes` | `boolean` | `true` | Deprecated, use `nounique` instead. This option will be removed in a future major release. By default duplicates are removed. Disable uniquification by setting this option to false. |
469
- | `noext` | `boolean` | `false` | Alias for `noextglob` |
470
- | `noextglob` | `boolean` | `false` | Disable support for matching with [extglobs](#extglobs) (like `+(a\|b)`) |
471
- | `noglobstar` | `boolean` | `false` | Disable support for matching nested directories with globstars (`**`) |
472
- | `nonegate` | `boolean` | `false` | Disable support for negating with leading `!` |
473
- | `noquantifiers` | `boolean` | `false` | Disable support for regex quantifiers (like `a{1,2}`) and treat them as brace patterns to be expanded. |
474
- | [onIgnore](#optionsonIgnore) | `function` | `undefined` | Function to be called on ignored items. |
475
- | [onMatch](#optionsonMatch) | `function` | `undefined` | Function to be called on matched items. |
476
- | [onResult](#optionsonResult) | `function` | `undefined` | Function to be called on all items, regardless of whether or not they are matched or ignored. |
477
- | `posix` | `boolean` | `false` | Support [POSIX character classes](#posix-bracket-expressions) ("posix brackets"). |
478
- | `posixSlashes` | `boolean` | `undefined` | Convert all slashes in file paths to forward slashes. This does not convert slashes in the glob pattern itself |
479
- | `prepend` | `string` | `undefined` | String to prepend to the generated regex used for matching. |
480
- | `regex` | `boolean` | `false` | Use regular expression rules for `+` (instead of matching literal `+`), and for stars that follow closing parentheses or brackets (as in `)*` and `]*`). |
481
- | `strictBrackets` | `boolean` | `undefined` | Throw an error if brackets, braces, or parens are imbalanced. |
482
- | `strictSlashes` | `boolean` | `undefined` | When true, picomatch won't match trailing slashes with single stars. |
483
- | `unescape` | `boolean` | `undefined` | Remove preceding backslashes from escaped glob characters before creating the regular expression to perform matches. |
484
- | `unixify` | `boolean` | `undefined` | Alias for `posixSlashes`, for backwards compatitibility. |
485
-
486
- ## Options Examples
487
-
488
- ### options.basename
489
-
490
- Allow glob patterns without slashes to match a file path based on its basename. Same behavior as [minimatch][] option `matchBase`.
491
-
492
- **Type**: `Boolean`
493
-
494
- **Default**: `false`
495
-
496
- **Example**
497
-
498
- ```js
499
- micromatch(['a/b.js', 'a/c.md'], '*.js');
500
- //=> []
501
-
502
- micromatch(['a/b.js', 'a/c.md'], '*.js', { basename: true });
503
- //=> ['a/b.js']
504
- ```
505
-
506
- ### options.bash
507
-
508
- Enabled by default, this option enforces bash-like behavior with stars immediately following a bracket expression. Bash bracket expressions are similar to regex character classes, but unlike regex, a star following a bracket expression **does not repeat the bracketed characters**. Instead, the star is treated the same as any other star.
509
-
510
- **Type**: `Boolean`
511
-
512
- **Default**: `true`
513
-
514
- **Example**
515
-
516
- ```js
517
- const files = ['abc', 'ajz'];
518
- console.log(micromatch(files, '[a-c]*'));
519
- //=> ['abc', 'ajz']
520
-
521
- console.log(micromatch(files, '[a-c]*', { bash: false }));
522
- ```
523
-
524
- ### options.expandRange
525
-
526
- **Type**: `function`
527
-
528
- **Default**: `undefined`
529
-
530
- Custom function for expanding ranges in brace patterns. The [fill-range][] library is ideal for this purpose, or you can use custom code to do whatever you need.
531
-
532
- **Example**
533
-
534
- The following example shows how to create a glob that matches a numeric folder name between `01` and `25`, with leading zeros.
535
-
536
- ```js
537
- const fill = require('fill-range');
538
- const regex = micromatch.makeRe('foo/{01..25}/bar', {
539
- expandRange(a, b) {
540
- return `(${fill(a, b, { toRegex: true })})`;
541
- }
542
- });
543
-
544
- console.log(regex)
545
- //=> /^(?:foo\/((?:0[1-9]|1[0-9]|2[0-5]))\/bar)$/
546
-
547
- console.log(regex.test('foo/00/bar')) // false
548
- console.log(regex.test('foo/01/bar')) // true
549
- console.log(regex.test('foo/10/bar')) // true
550
- console.log(regex.test('foo/22/bar')) // true
551
- console.log(regex.test('foo/25/bar')) // true
552
- console.log(regex.test('foo/26/bar')) // false
553
- ```
554
-
555
- ### options.format
556
-
557
- **Type**: `function`
558
-
559
- **Default**: `undefined`
560
-
561
- Custom function for formatting strings before they're matched.
562
-
563
- **Example**
564
-
565
- ```js
566
- // strip leading './' from strings
567
- const format = str => str.replace(/^\.\//, '');
568
- const isMatch = picomatch('foo/*.js', { format });
569
- console.log(isMatch('./foo/bar.js')) //=> true
570
- ```
571
-
572
- ### options.ignore
573
-
574
- String or array of glob patterns to match files to ignore.
575
-
576
- **Type**: `String|Array`
577
-
578
- **Default**: `undefined`
579
-
580
- ```js
581
- const isMatch = micromatch.matcher('*', { ignore: 'f*' });
582
- console.log(isMatch('foo')) //=> false
583
- console.log(isMatch('bar')) //=> true
584
- console.log(isMatch('baz')) //=> true
585
- ```
586
-
587
- ### options.matchBase
588
-
589
- Alias for [options.basename](#options-basename).
590
-
591
- ### options.noextglob
592
-
593
- Disable extglob support, so that [extglobs](#extglobs) are regarded as literal characters.
594
-
595
- **Type**: `Boolean`
596
-
597
- **Default**: `undefined`
598
-
599
- **Examples**
600
-
601
- ```js
602
- console.log(micromatch(['a/z', 'a/b', 'a/!(z)'], 'a/!(z)'));
603
- //=> ['a/b', 'a/!(z)']
604
-
605
- console.log(micromatch(['a/z', 'a/b', 'a/!(z)'], 'a/!(z)', { noextglob: true }));
606
- //=> ['a/!(z)'] (matches only as literal characters)
607
- ```
608
-
609
- ### options.nonegate
610
-
611
- Disallow negation (`!`) patterns, and treat leading `!` as a literal character to match.
612
-
613
- **Type**: `Boolean`
614
-
615
- **Default**: `undefined`
616
-
617
- ### options.noglobstar
618
-
619
- Disable matching with globstars (`**`).
620
-
621
- **Type**: `Boolean`
622
-
623
- **Default**: `undefined`
624
-
625
- ```js
626
- micromatch(['a/b', 'a/b/c', 'a/b/c/d'], 'a/**');
627
- //=> ['a/b', 'a/b/c', 'a/b/c/d']
628
-
629
- micromatch(['a/b', 'a/b/c', 'a/b/c/d'], 'a/**', {noglobstar: true});
630
- //=> ['a/b']
631
- ```
632
-
633
- ### options.nonull
634
-
635
- Alias for [options.nullglob](#options-nullglob).
636
-
637
- ### options.nullglob
638
-
639
- If `true`, when no matches are found the actual (arrayified) glob pattern is returned instead of an empty array. Same behavior as [minimatch][] option `nonull`.
640
-
641
- **Type**: `Boolean`
642
-
643
- **Default**: `undefined`
644
-
645
- ### options.onIgnore
646
-
647
- ```js
648
- const onIgnore = ({ glob, regex, input, output }) => {
649
- console.log({ glob, regex, input, output });
650
- // { glob: '*', regex: /^(?:(?!\.)(?=.)[^\/]*?\/?)$/, input: 'foo', output: 'foo' }
651
- };
652
-
653
- const isMatch = micromatch.matcher('*', { onIgnore, ignore: 'f*' });
654
- isMatch('foo');
655
- isMatch('bar');
656
- isMatch('baz');
657
- ```
658
-
659
- ### options.onMatch
660
-
661
- ```js
662
- const onMatch = ({ glob, regex, input, output }) => {
663
- console.log({ input, output });
664
- // { input: 'some\\path', output: 'some/path' }
665
- // { input: 'some\\path', output: 'some/path' }
666
- // { input: 'some\\path', output: 'some/path' }
667
- };
668
-
669
- const isMatch = micromatch.matcher('**', { onMatch, posixSlashes: true });
670
- isMatch('some\\path');
671
- isMatch('some\\path');
672
- isMatch('some\\path');
673
- ```
674
-
675
- ### options.onResult
676
-
677
- ```js
678
- const onResult = ({ glob, regex, input, output }) => {
679
- console.log({ glob, regex, input, output });
680
- };
681
-
682
- const isMatch = micromatch('*', { onResult, ignore: 'f*' });
683
- isMatch('foo');
684
- isMatch('bar');
685
- isMatch('baz');
686
- ```
687
-
688
- ### options.posixSlashes
689
-
690
- Convert path separators on returned files to posix/unix-style forward slashes. Aliased as `unixify` for backwards compatibility.
691
-
692
- **Type**: `Boolean`
693
-
694
- **Default**: `true` on windows, `false` everywhere else.
695
-
696
- **Example**
697
-
698
- ```js
699
- console.log(micromatch.match(['a\\b\\c'], 'a/**'));
700
- //=> ['a/b/c']
701
-
702
- console.log(micromatch.match(['a\\b\\c'], { posixSlashes: false }));
703
- //=> ['a\\b\\c']
704
- ```
705
-
706
- ### options.unescape
707
-
708
- Remove backslashes from escaped glob characters before creating the regular expression to perform matches.
709
-
710
- **Type**: `Boolean`
711
-
712
- **Default**: `undefined`
713
-
714
- **Example**
715
-
716
- In this example we want to match a literal `*`:
717
-
718
- ```js
719
- console.log(micromatch.match(['abc', 'a\\*c'], 'a\\*c'));
720
- //=> ['a\\*c']
721
-
722
- console.log(micromatch.match(['abc', 'a\\*c'], 'a\\*c', { unescape: true }));
723
- //=> ['a*c']
724
- ```
725
-
726
- <br>
727
- <br>
728
-
729
- ## Extended globbing
730
-
731
- Micromatch supports the following extended globbing features.
732
-
733
- ### Extglobs
734
-
735
- Extended globbing, as described by the bash man page:
736
-
737
- | **pattern** | **regex equivalent** | **description** |
738
- | --- | --- | --- |
739
- | `?(pattern)` | `(pattern)?` | Matches zero or one occurrence of the given patterns |
740
- | `*(pattern)` | `(pattern)*` | Matches zero or more occurrences of the given patterns |
741
- | `+(pattern)` | `(pattern)+` | Matches one or more occurrences of the given patterns |
742
- | `@(pattern)` | `(pattern)` <sup>*</sup> | Matches one of the given patterns |
743
- | `!(pattern)` | N/A (equivalent regex is much more complicated) | Matches anything except one of the given patterns |
744
-
745
- <sup><strong>*</strong></sup> Note that `@` isn't a regex character.
746
-
747
- ### Braces
748
-
749
- Brace patterns can be used to match specific ranges or sets of characters.
750
-
751
- **Example**
752
-
753
- The pattern `{f,b}*/{1..3}/{b,q}*` would match any of following strings:
754
-
755
- ```
756
- foo/1/bar
757
- foo/2/bar
758
- foo/3/bar
759
- baz/1/qux
760
- baz/2/qux
761
- baz/3/qux
762
- ```
763
-
764
- Visit [braces][] to see the full range of features and options related to brace expansion, or to create brace matching or expansion related issues.
765
-
766
- ### Regex character classes
767
-
768
- Given the list: `['a.js', 'b.js', 'c.js', 'd.js', 'E.js']`:
769
-
770
- * `[ac].js`: matches both `a` and `c`, returning `['a.js', 'c.js']`
771
- * `[b-d].js`: matches from `b` to `d`, returning `['b.js', 'c.js', 'd.js']`
772
- * `a/[A-Z].js`: matches and uppercase letter, returning `['a/E.md']`
773
-
774
- Learn about [regex character classes][charclass].
775
-
776
- ### Regex groups
777
-
778
- Given `['a.js', 'b.js', 'c.js', 'd.js', 'E.js']`:
779
-
780
- * `(a|c).js`: would match either `a` or `c`, returning `['a.js', 'c.js']`
781
- * `(b|d).js`: would match either `b` or `d`, returning `['b.js', 'd.js']`
782
- * `(b|[A-Z]).js`: would match either `b` or an uppercase letter, returning `['b.js', 'E.js']`
783
-
784
- As with regex, parens can be nested, so patterns like `((a|b)|c)/b` will work. Although brace expansion might be friendlier to use, depending on preference.
785
-
786
- ### POSIX bracket expressions
787
-
788
- POSIX brackets are intended to be more user-friendly than regex character classes. This of course is in the eye of the beholder.
789
-
790
- **Example**
791
-
792
- ```js
793
- console.log(micromatch.isMatch('a1', '[[:alpha:][:digit:]]')) //=> true
794
- console.log(micromatch.isMatch('a1', '[[:alpha:][:alpha:]]')) //=> false
795
- ```
796
-
797
- ***
798
-
799
- ## Notes
800
-
801
- ### Bash 4.3 parity
802
-
803
- Whenever possible matching behavior is based on behavior Bash 4.3, which is mostly consistent with minimatch.
804
-
805
- However, it's suprising how many edge cases and rabbit holes there are with glob matching, and since there is no real glob specification, and micromatch is more accurate than both Bash and minimatch, there are cases where best-guesses were made for behavior. In a few cases where Bash had no answers, we used wildmatch (used by git) as a fallback.
806
-
807
- ### Backslashes
808
-
809
- There is an important, notable difference between minimatch and micromatch _in regards to how backslashes are handled_ in glob patterns.
810
-
811
- - Micromatch exclusively and explicitly reserves backslashes for escaping characters in a glob pattern, even on windows, which is consistent with bash behavior. _More importantly, unescaping globs can result in unsafe regular expressions_.
812
- - Minimatch converts all backslashes to forward slashes, which means you can't use backslashes to escape any characters in your glob patterns.
813
-
814
- We made this decision for micromatch for a couple of reasons:
815
-
816
- - Consistency with bash conventions.
817
- - Glob patterns are not filepaths. They are a type of [regular language][regular-language] that is converted to a JavaScript regular expression. Thus, when forward slashes are defined in a glob pattern, the resulting regular expression will match windows or POSIX path separators just fine.
818
-
819
- **A note about joining paths to globs**
820
-
821
- Note that when you pass something like `path.join('foo', '*')` to micromatch, you are creating a filepath and expecting it to still work as a glob pattern. This causes problems on windows, since the `path.sep` is `\\`.
822
-
823
- In other words, since `\\` is reserved as an escape character in globs, on windows `path.join('foo', '*')` would result in `foo\\*`, which tells micromatch to match `*` as a literal character. This is the same behavior as bash.
824
-
825
- To solve this, you might be inspired to do something like `'foo\\*'.replace(/\\/g, '/')`, but this causes another, potentially much more serious, problem.
826
-
827
- ## Benchmarks
828
-
829
- ### Running benchmarks
830
-
831
- Install dependencies for running benchmarks:
832
-
833
- ```sh
834
- $ cd bench && npm install
835
- ```
836
-
837
- Run the benchmarks:
838
-
839
- ```sh
840
- $ npm run bench
841
- ```
842
-
843
- ### Latest results
844
-
845
- As of July 12, 2023 (longer bars are better):
846
-
847
- ```sh
848
- # .makeRe star
849
- micromatch x 2,232,802 ops/sec ±2.34% (89 runs sampled))
850
- minimatch x 781,018 ops/sec ±6.74% (92 runs sampled))
851
-
852
- # .makeRe star; dot=true
853
- micromatch x 1,863,453 ops/sec ±0.74% (93 runs sampled)
854
- minimatch x 723,105 ops/sec ±0.75% (93 runs sampled)
855
-
856
- # .makeRe globstar
857
- micromatch x 1,624,179 ops/sec ±2.22% (91 runs sampled)
858
- minimatch x 1,117,230 ops/sec ±2.78% (86 runs sampled))
859
-
860
- # .makeRe globstars
861
- micromatch x 1,658,642 ops/sec ±0.86% (92 runs sampled)
862
- minimatch x 741,224 ops/sec ±1.24% (89 runs sampled))
863
-
864
- # .makeRe with leading star
865
- micromatch x 1,525,014 ops/sec ±1.63% (90 runs sampled)
866
- minimatch x 561,074 ops/sec ±3.07% (89 runs sampled)
867
-
868
- # .makeRe - braces
869
- micromatch x 172,478 ops/sec ±2.37% (78 runs sampled)
870
- minimatch x 96,087 ops/sec ±2.34% (88 runs sampled)))
871
-
872
- # .makeRe braces - range (expanded)
873
- micromatch x 26,973 ops/sec ±0.84% (89 runs sampled)
874
- minimatch x 3,023 ops/sec ±0.99% (90 runs sampled))
875
-
876
- # .makeRe braces - range (compiled)
877
- micromatch x 152,892 ops/sec ±1.67% (83 runs sampled)
878
- minimatch x 992 ops/sec ±3.50% (89 runs sampled)d))
879
-
880
- # .makeRe braces - nested ranges (expanded)
881
- micromatch x 15,816 ops/sec ±13.05% (80 runs sampled)
882
- minimatch x 2,953 ops/sec ±1.64% (91 runs sampled)
883
-
884
- # .makeRe braces - nested ranges (compiled)
885
- micromatch x 110,881 ops/sec ±1.85% (82 runs sampled)
886
- minimatch x 1,008 ops/sec ±1.51% (91 runs sampled)
887
-
888
- # .makeRe braces - set (compiled)
889
- micromatch x 134,930 ops/sec ±3.54% (63 runs sampled))
890
- minimatch x 43,242 ops/sec ±0.60% (93 runs sampled)
891
-
892
- # .makeRe braces - nested sets (compiled)
893
- micromatch x 94,455 ops/sec ±1.74% (69 runs sampled))
894
- minimatch x 27,720 ops/sec ±1.84% (93 runs sampled))
895
- ```
896
-
897
- ## Contributing
898
-
899
- All contributions are welcome! Please read [the contributing guide](.github/contributing.md) to get started.
900
-
901
- **Bug reports**
902
-
903
- Please create an issue if you encounter a bug or matching behavior that doesn't seem correct. If you find a matching-related issue, please:
904
-
905
- - [research existing issues first](../../issues) (open and closed)
906
- - visit the [GNU Bash documentation][bash] to see how Bash deals with the pattern
907
- - visit the [minimatch][] documentation to cross-check expected behavior in node.js
908
- - if all else fails, since there is no real specification for globs we will probably need to discuss expected behavior and decide how to resolve it. which means any detail you can provide to help with this discussion would be greatly appreciated.
909
-
910
- **Platform issues**
911
-
912
- It's important to us that micromatch work consistently on all platforms. If you encounter any platform-specific matching or path related issues, please let us know (pull requests are also greatly appreciated).
913
-
914
- [regular-language]: https://en.wikipedia.org/wiki/Regular_language
915
- [bash]: https://www.gnu.org/software/bash/manual/
916
- [charclass]: http://www.regular-expressions.info/charclass.html
917
- [extended]: http://mywiki.wooledge.org/BashGuide/Patterns#Extended_Globs
918
- [brackets]: https://github.com/micromatch/expand-brackets
919
- [braces]: https://github.com/micromatch/braces
920
-
921
- ## About
922
- <details>
923
- <summary><strong>Contributing</strong></summary>
924
-
925
- Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
926
-
927
- Please read the [contributing guide](.github/contributing.md) for advice on opening issues, pull requests, and coding standards.
928
-
929
- </details>
930
-
931
- <details>
932
- <summary><strong>Running Tests</strong></summary>
933
-
934
- Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
935
-
936
- ```sh
937
- $ npm install && npm test
938
- ```
939
-
940
- </details>
941
-
942
- <details>
943
- <summary><strong>Building docs</strong></summary>
944
-
945
- _(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_
946
-
947
- To generate the readme, run the following command:
948
-
949
- ```sh
950
- $ npm install -g verbose/verb#dev verb-generate-readme && verb
951
- ```
952
-
953
- </details>
954
-
955
- ### Related projects
956
-
957
- You might also be interested in these projects:
958
-
959
- - [braces](https://www.npmjs.com/package/braces): Bash-like brace expansion, implemented in JavaScript. Safer than other brace expansion libs, with complete support… [more](https://github.com/micromatch/braces) | [homepage](https://github.com/micromatch/braces "Bash-like brace expansion, implemented in JavaScript. Safer than other brace expansion libs, with complete support for the Bash 4.3 braces specification, without sacrificing speed.")
960
- - [expand-brackets](https://www.npmjs.com/package/expand-brackets): Expand POSIX bracket expressions (character classes) in glob patterns. | [homepage](https://github.com/micromatch/expand-brackets "Expand POSIX bracket expressions (character classes) in glob patterns.")
961
- - [extglob](https://www.npmjs.com/package/extglob): Extended glob support for JavaScript. Adds (almost) the expressive power of regular expressions to glob… [more](https://github.com/micromatch/extglob) | [homepage](https://github.com/micromatch/extglob "Extended glob support for JavaScript. Adds (almost) the expressive power of regular expressions to glob patterns.")
962
- - [fill-range](https://www.npmjs.com/package/fill-range): Fill in a range of numbers or letters, optionally passing an increment or `step` to… [more](https://github.com/jonschlinkert/fill-range) | [homepage](https://github.com/jonschlinkert/fill-range "Fill in a range of numbers or letters, optionally passing an increment or `step` to use, or create a regex-compatible range with `options.toRegex`")
963
- - [nanomatch](https://www.npmjs.com/package/nanomatch): Fast, minimal glob matcher for node.js. Similar to micromatch, minimatch and multimatch, but complete Bash… [more](https://github.com/micromatch/nanomatch) | [homepage](https://github.com/micromatch/nanomatch "Fast, minimal glob matcher for node.js. Similar to micromatch, minimatch and multimatch, but complete Bash 4.3 wildcard support only (no support for exglobs, posix brackets or braces)")
964
-
965
- ### Contributors
966
- | **Commits** | **Contributor** |
967
- | --- | --- |
968
- | 515 | [jonschlinkert](https://github.com/jonschlinkert) |
969
- | 12 | [es128](https://github.com/es128) |
970
- | 9 | [danez](https://github.com/danez) |
971
- | 8 | [doowb](https://github.com/doowb) |
972
- | 6 | [paulmillr](https://github.com/paulmillr) |
973
- | 5 | [mrmlnc](https://github.com/mrmlnc) |
974
- | 3 | [DrPizza](https://github.com/DrPizza) |
975
- | 2 | [TrySound](https://github.com/TrySound) |
976
- | 2 | [mceIdo](https://github.com/mceIdo) |
977
- | 2 | [Glazy](https://github.com/Glazy) |
978
- | 2 | [MartinKolarik](https://github.com/MartinKolarik) |
979
- | 2 | [antonyk](https://github.com/antonyk) |
980
- | 2 | [Tvrqvoise](https://github.com/Tvrqvoise) |
981
- | 1 | [amilajack](https://github.com/amilajack) |
982
- | 1 | [Cslove](https://github.com/Cslove) |
983
- | 1 | [devongovett](https://github.com/devongovett) |
984
- | 1 | [DianeLooney](https://github.com/DianeLooney) |
985
- | 1 | [UltCombo](https://github.com/UltCombo) |
986
- | 1 | [frangio](https://github.com/frangio) |
987
- | 1 | [joyceerhl](https://github.com/joyceerhl) |
988
- | 1 | [juszczykjakub](https://github.com/juszczykjakub) |
989
- | 1 | [muescha](https://github.com/muescha) |
990
- | 1 | [sebdeckers](https://github.com/sebdeckers) |
991
- | 1 | [tomByrer](https://github.com/tomByrer) |
992
- | 1 | [fidian](https://github.com/fidian) |
993
- | 1 | [curbengh](https://github.com/curbengh) |
994
- | 1 | [simlu](https://github.com/simlu) |
995
- | 1 | [wtgtybhertgeghgtwtg](https://github.com/wtgtybhertgeghgtwtg) |
996
- | 1 | [yvele](https://github.com/yvele) |
997
-
998
- ### Author
999
- **Jon Schlinkert**
1000
- + [GitHub Profile](https://github.com/jonschlinkert)
1001
- + [Twitter Profile](https://twitter.com/jonschlinkert)
1002
- + [LinkedIn Profile](https://linkedin.com/in/jonschlinkert)
1003
-
1004
- ### License
1005
- Copyright © 2023, [Jon Schlinkert](https://github.com/jonschlinkert).
1006
- Released under the [MIT License](LICENSE).
1007
-
1008
- ***
1009
-
1010
- _This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on July 12, 2023._
1011
-
1012
- [extglob]: https://github.com/micromatch/extglob
1013
- [fill-range]: https://github.com/jonschlinkert/fill-range
1014
- [glob-object]: https://github.com/jonschlinkert/glob-object
1015
- [minimatch]: https://github.com/isaacs/minimatch
1016
- [multimatch]: https://github.com/sindresorhus/multimatch
1017
-