korext 0.1.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 (517) hide show
  1. package/bin/korext.js +278 -0
  2. package/korext-cli-0.1.0.tgz +0 -0
  3. package/node_modules/ansi-regex/index.d.ts +37 -0
  4. package/node_modules/ansi-regex/index.js +10 -0
  5. package/node_modules/ansi-regex/license +9 -0
  6. package/node_modules/ansi-regex/package.json +55 -0
  7. package/node_modules/ansi-regex/readme.md +78 -0
  8. package/node_modules/ansi-styles/index.d.ts +345 -0
  9. package/node_modules/ansi-styles/index.js +163 -0
  10. package/node_modules/ansi-styles/license +9 -0
  11. package/node_modules/ansi-styles/package.json +56 -0
  12. package/node_modules/ansi-styles/readme.md +152 -0
  13. package/node_modules/balanced-match/LICENSE.md +23 -0
  14. package/node_modules/balanced-match/README.md +57 -0
  15. package/node_modules/balanced-match/dist/commonjs/index.d.ts +9 -0
  16. package/node_modules/balanced-match/dist/commonjs/index.d.ts.map +1 -0
  17. package/node_modules/balanced-match/dist/commonjs/index.js +59 -0
  18. package/node_modules/balanced-match/dist/commonjs/index.js.map +1 -0
  19. package/node_modules/balanced-match/dist/commonjs/package.json +3 -0
  20. package/node_modules/balanced-match/dist/esm/index.d.ts +9 -0
  21. package/node_modules/balanced-match/dist/esm/index.d.ts.map +1 -0
  22. package/node_modules/balanced-match/dist/esm/index.js +54 -0
  23. package/node_modules/balanced-match/dist/esm/index.js.map +1 -0
  24. package/node_modules/balanced-match/dist/esm/package.json +3 -0
  25. package/node_modules/balanced-match/package.json +68 -0
  26. package/node_modules/base64-js/LICENSE +21 -0
  27. package/node_modules/base64-js/README.md +34 -0
  28. package/node_modules/base64-js/base64js.min.js +1 -0
  29. package/node_modules/base64-js/index.d.ts +3 -0
  30. package/node_modules/base64-js/index.js +150 -0
  31. package/node_modules/base64-js/package.json +47 -0
  32. package/node_modules/bl/.travis.yml +17 -0
  33. package/node_modules/bl/BufferList.js +396 -0
  34. package/node_modules/bl/LICENSE.md +13 -0
  35. package/node_modules/bl/README.md +247 -0
  36. package/node_modules/bl/bl.js +84 -0
  37. package/node_modules/bl/package.json +37 -0
  38. package/node_modules/bl/test/convert.js +21 -0
  39. package/node_modules/bl/test/indexOf.js +492 -0
  40. package/node_modules/bl/test/isBufferList.js +32 -0
  41. package/node_modules/bl/test/test.js +869 -0
  42. package/node_modules/brace-expansion/LICENSE +23 -0
  43. package/node_modules/brace-expansion/README.md +94 -0
  44. package/node_modules/brace-expansion/dist/commonjs/index.d.ts +6 -0
  45. package/node_modules/brace-expansion/dist/commonjs/index.d.ts.map +1 -0
  46. package/node_modules/brace-expansion/dist/commonjs/index.js +199 -0
  47. package/node_modules/brace-expansion/dist/commonjs/index.js.map +1 -0
  48. package/node_modules/brace-expansion/dist/commonjs/package.json +3 -0
  49. package/node_modules/brace-expansion/dist/esm/index.d.ts +6 -0
  50. package/node_modules/brace-expansion/dist/esm/index.d.ts.map +1 -0
  51. package/node_modules/brace-expansion/dist/esm/index.js +195 -0
  52. package/node_modules/brace-expansion/dist/esm/index.js.map +1 -0
  53. package/node_modules/brace-expansion/dist/esm/package.json +3 -0
  54. package/node_modules/brace-expansion/package.json +64 -0
  55. package/node_modules/buffer/AUTHORS.md +70 -0
  56. package/node_modules/buffer/LICENSE +21 -0
  57. package/node_modules/buffer/README.md +410 -0
  58. package/node_modules/buffer/index.d.ts +186 -0
  59. package/node_modules/buffer/index.js +1817 -0
  60. package/node_modules/buffer/package.json +96 -0
  61. package/node_modules/chalk/index.d.ts +415 -0
  62. package/node_modules/chalk/license +9 -0
  63. package/node_modules/chalk/package.json +68 -0
  64. package/node_modules/chalk/readme.md +341 -0
  65. package/node_modules/chalk/source/index.js +229 -0
  66. package/node_modules/chalk/source/templates.js +134 -0
  67. package/node_modules/chalk/source/util.js +39 -0
  68. package/node_modules/cli-cursor/index.d.ts +45 -0
  69. package/node_modules/cli-cursor/index.js +35 -0
  70. package/node_modules/cli-cursor/license +9 -0
  71. package/node_modules/cli-cursor/package.json +46 -0
  72. package/node_modules/cli-cursor/readme.md +55 -0
  73. package/node_modules/cli-spinners/index.d.ts +128 -0
  74. package/node_modules/cli-spinners/index.js +15 -0
  75. package/node_modules/cli-spinners/license +9 -0
  76. package/node_modules/cli-spinners/package.json +50 -0
  77. package/node_modules/cli-spinners/readme.md +54 -0
  78. package/node_modules/cli-spinners/spinners.json +1622 -0
  79. package/node_modules/clone/.npmignore +4 -0
  80. package/node_modules/clone/LICENSE +18 -0
  81. package/node_modules/clone/README.md +126 -0
  82. package/node_modules/clone/clone.iml +10 -0
  83. package/node_modules/clone/clone.js +166 -0
  84. package/node_modules/clone/package.json +51 -0
  85. package/node_modules/color-convert/CHANGELOG.md +54 -0
  86. package/node_modules/color-convert/LICENSE +21 -0
  87. package/node_modules/color-convert/README.md +68 -0
  88. package/node_modules/color-convert/conversions.js +839 -0
  89. package/node_modules/color-convert/index.js +81 -0
  90. package/node_modules/color-convert/package.json +48 -0
  91. package/node_modules/color-convert/route.js +97 -0
  92. package/node_modules/color-name/LICENSE +8 -0
  93. package/node_modules/color-name/README.md +11 -0
  94. package/node_modules/color-name/index.js +152 -0
  95. package/node_modules/color-name/package.json +28 -0
  96. package/node_modules/commander/LICENSE +22 -0
  97. package/node_modules/commander/Readme.md +1176 -0
  98. package/node_modules/commander/esm.mjs +16 -0
  99. package/node_modules/commander/index.js +24 -0
  100. package/node_modules/commander/lib/argument.js +150 -0
  101. package/node_modules/commander/lib/command.js +2777 -0
  102. package/node_modules/commander/lib/error.js +39 -0
  103. package/node_modules/commander/lib/help.js +747 -0
  104. package/node_modules/commander/lib/option.js +380 -0
  105. package/node_modules/commander/lib/suggestSimilar.js +101 -0
  106. package/node_modules/commander/package-support.json +19 -0
  107. package/node_modules/commander/package.json +82 -0
  108. package/node_modules/commander/typings/esm.d.mts +3 -0
  109. package/node_modules/commander/typings/index.d.ts +1113 -0
  110. package/node_modules/data-uri-to-buffer/README.md +88 -0
  111. package/node_modules/data-uri-to-buffer/dist/index.d.ts +15 -0
  112. package/node_modules/data-uri-to-buffer/dist/index.js +53 -0
  113. package/node_modules/data-uri-to-buffer/dist/index.js.map +1 -0
  114. package/node_modules/data-uri-to-buffer/package.json +62 -0
  115. package/node_modules/data-uri-to-buffer/src/index.ts +68 -0
  116. package/node_modules/defaults/LICENSE +22 -0
  117. package/node_modules/defaults/README.md +39 -0
  118. package/node_modules/defaults/index.js +13 -0
  119. package/node_modules/defaults/package.json +33 -0
  120. package/node_modules/defaults/test.js +34 -0
  121. package/node_modules/fetch-blob/LICENSE +21 -0
  122. package/node_modules/fetch-blob/README.md +106 -0
  123. package/node_modules/fetch-blob/file.d.ts +2 -0
  124. package/node_modules/fetch-blob/file.js +49 -0
  125. package/node_modules/fetch-blob/from.d.ts +26 -0
  126. package/node_modules/fetch-blob/from.js +100 -0
  127. package/node_modules/fetch-blob/index.d.ts +3 -0
  128. package/node_modules/fetch-blob/index.js +250 -0
  129. package/node_modules/fetch-blob/package.json +56 -0
  130. package/node_modules/fetch-blob/streams.cjs +51 -0
  131. package/node_modules/formdata-polyfill/FormData.js +441 -0
  132. package/node_modules/formdata-polyfill/LICENSE +21 -0
  133. package/node_modules/formdata-polyfill/README.md +145 -0
  134. package/node_modules/formdata-polyfill/esm.min.d.ts +5 -0
  135. package/node_modules/formdata-polyfill/esm.min.js +40 -0
  136. package/node_modules/formdata-polyfill/formdata-to-blob.js +39 -0
  137. package/node_modules/formdata-polyfill/formdata.min.js +21 -0
  138. package/node_modules/formdata-polyfill/package.json +50 -0
  139. package/node_modules/glob/LICENSE.md +63 -0
  140. package/node_modules/glob/README.md +1203 -0
  141. package/node_modules/glob/dist/commonjs/glob.d.ts +396 -0
  142. package/node_modules/glob/dist/commonjs/glob.d.ts.map +1 -0
  143. package/node_modules/glob/dist/commonjs/glob.js +248 -0
  144. package/node_modules/glob/dist/commonjs/glob.js.map +1 -0
  145. package/node_modules/glob/dist/commonjs/has-magic.d.ts +14 -0
  146. package/node_modules/glob/dist/commonjs/has-magic.d.ts.map +1 -0
  147. package/node_modules/glob/dist/commonjs/has-magic.js +27 -0
  148. package/node_modules/glob/dist/commonjs/has-magic.js.map +1 -0
  149. package/node_modules/glob/dist/commonjs/ignore.d.ts +24 -0
  150. package/node_modules/glob/dist/commonjs/ignore.d.ts.map +1 -0
  151. package/node_modules/glob/dist/commonjs/ignore.js +119 -0
  152. package/node_modules/glob/dist/commonjs/ignore.js.map +1 -0
  153. package/node_modules/glob/dist/commonjs/index.d.ts +97 -0
  154. package/node_modules/glob/dist/commonjs/index.d.ts.map +1 -0
  155. package/node_modules/glob/dist/commonjs/index.js +68 -0
  156. package/node_modules/glob/dist/commonjs/index.js.map +1 -0
  157. package/node_modules/glob/dist/commonjs/index.min.js +4 -0
  158. package/node_modules/glob/dist/commonjs/index.min.js.map +7 -0
  159. package/node_modules/glob/dist/commonjs/package.json +3 -0
  160. package/node_modules/glob/dist/commonjs/pattern.d.ts +79 -0
  161. package/node_modules/glob/dist/commonjs/pattern.d.ts.map +1 -0
  162. package/node_modules/glob/dist/commonjs/pattern.js +223 -0
  163. package/node_modules/glob/dist/commonjs/pattern.js.map +1 -0
  164. package/node_modules/glob/dist/commonjs/processor.d.ts +59 -0
  165. package/node_modules/glob/dist/commonjs/processor.d.ts.map +1 -0
  166. package/node_modules/glob/dist/commonjs/processor.js +301 -0
  167. package/node_modules/glob/dist/commonjs/processor.js.map +1 -0
  168. package/node_modules/glob/dist/commonjs/walker.d.ts +97 -0
  169. package/node_modules/glob/dist/commonjs/walker.d.ts.map +1 -0
  170. package/node_modules/glob/dist/commonjs/walker.js +387 -0
  171. package/node_modules/glob/dist/commonjs/walker.js.map +1 -0
  172. package/node_modules/glob/dist/esm/glob.d.ts +396 -0
  173. package/node_modules/glob/dist/esm/glob.d.ts.map +1 -0
  174. package/node_modules/glob/dist/esm/glob.js +244 -0
  175. package/node_modules/glob/dist/esm/glob.js.map +1 -0
  176. package/node_modules/glob/dist/esm/has-magic.d.ts +14 -0
  177. package/node_modules/glob/dist/esm/has-magic.d.ts.map +1 -0
  178. package/node_modules/glob/dist/esm/has-magic.js +23 -0
  179. package/node_modules/glob/dist/esm/has-magic.js.map +1 -0
  180. package/node_modules/glob/dist/esm/ignore.d.ts +24 -0
  181. package/node_modules/glob/dist/esm/ignore.d.ts.map +1 -0
  182. package/node_modules/glob/dist/esm/ignore.js +115 -0
  183. package/node_modules/glob/dist/esm/ignore.js.map +1 -0
  184. package/node_modules/glob/dist/esm/index.d.ts +97 -0
  185. package/node_modules/glob/dist/esm/index.d.ts.map +1 -0
  186. package/node_modules/glob/dist/esm/index.js +55 -0
  187. package/node_modules/glob/dist/esm/index.js.map +1 -0
  188. package/node_modules/glob/dist/esm/index.min.js +4 -0
  189. package/node_modules/glob/dist/esm/index.min.js.map +7 -0
  190. package/node_modules/glob/dist/esm/package.json +3 -0
  191. package/node_modules/glob/dist/esm/pattern.d.ts +79 -0
  192. package/node_modules/glob/dist/esm/pattern.d.ts.map +1 -0
  193. package/node_modules/glob/dist/esm/pattern.js +219 -0
  194. package/node_modules/glob/dist/esm/pattern.js.map +1 -0
  195. package/node_modules/glob/dist/esm/processor.d.ts +59 -0
  196. package/node_modules/glob/dist/esm/processor.d.ts.map +1 -0
  197. package/node_modules/glob/dist/esm/processor.js +294 -0
  198. package/node_modules/glob/dist/esm/processor.js.map +1 -0
  199. package/node_modules/glob/dist/esm/walker.d.ts +97 -0
  200. package/node_modules/glob/dist/esm/walker.d.ts.map +1 -0
  201. package/node_modules/glob/dist/esm/walker.js +381 -0
  202. package/node_modules/glob/dist/esm/walker.js.map +1 -0
  203. package/node_modules/glob/package.json +98 -0
  204. package/node_modules/has-flag/index.d.ts +39 -0
  205. package/node_modules/has-flag/index.js +8 -0
  206. package/node_modules/has-flag/license +9 -0
  207. package/node_modules/has-flag/package.json +46 -0
  208. package/node_modules/has-flag/readme.md +89 -0
  209. package/node_modules/ieee754/LICENSE +11 -0
  210. package/node_modules/ieee754/README.md +51 -0
  211. package/node_modules/ieee754/index.d.ts +10 -0
  212. package/node_modules/ieee754/index.js +85 -0
  213. package/node_modules/ieee754/package.json +52 -0
  214. package/node_modules/inherits/LICENSE +16 -0
  215. package/node_modules/inherits/README.md +42 -0
  216. package/node_modules/inherits/inherits.js +9 -0
  217. package/node_modules/inherits/inherits_browser.js +27 -0
  218. package/node_modules/inherits/package.json +29 -0
  219. package/node_modules/is-interactive/index.d.ts +31 -0
  220. package/node_modules/is-interactive/index.js +9 -0
  221. package/node_modules/is-interactive/license +9 -0
  222. package/node_modules/is-interactive/package.json +38 -0
  223. package/node_modules/is-interactive/readme.md +51 -0
  224. package/node_modules/is-unicode-supported/index.d.ts +14 -0
  225. package/node_modules/is-unicode-supported/index.js +13 -0
  226. package/node_modules/is-unicode-supported/license +9 -0
  227. package/node_modules/is-unicode-supported/package.json +41 -0
  228. package/node_modules/is-unicode-supported/readme.md +35 -0
  229. package/node_modules/log-symbols/browser.js +8 -0
  230. package/node_modules/log-symbols/index.d.ts +25 -0
  231. package/node_modules/log-symbols/index.js +19 -0
  232. package/node_modules/log-symbols/license +9 -0
  233. package/node_modules/log-symbols/package.json +52 -0
  234. package/node_modules/log-symbols/readme.md +51 -0
  235. package/node_modules/lru-cache/LICENSE.md +55 -0
  236. package/node_modules/lru-cache/README.md +383 -0
  237. package/node_modules/lru-cache/dist/commonjs/index.d.ts +1323 -0
  238. package/node_modules/lru-cache/dist/commonjs/index.d.ts.map +1 -0
  239. package/node_modules/lru-cache/dist/commonjs/index.js +1595 -0
  240. package/node_modules/lru-cache/dist/commonjs/index.js.map +1 -0
  241. package/node_modules/lru-cache/dist/commonjs/index.min.js +2 -0
  242. package/node_modules/lru-cache/dist/commonjs/index.min.js.map +7 -0
  243. package/node_modules/lru-cache/dist/commonjs/package.json +3 -0
  244. package/node_modules/lru-cache/dist/esm/index.d.ts +1323 -0
  245. package/node_modules/lru-cache/dist/esm/index.d.ts.map +1 -0
  246. package/node_modules/lru-cache/dist/esm/index.js +1591 -0
  247. package/node_modules/lru-cache/dist/esm/index.js.map +1 -0
  248. package/node_modules/lru-cache/dist/esm/index.min.js +2 -0
  249. package/node_modules/lru-cache/dist/esm/index.min.js.map +7 -0
  250. package/node_modules/lru-cache/dist/esm/package.json +3 -0
  251. package/node_modules/lru-cache/package.json +93 -0
  252. package/node_modules/mimic-fn/index.d.ts +54 -0
  253. package/node_modules/mimic-fn/index.js +13 -0
  254. package/node_modules/mimic-fn/license +9 -0
  255. package/node_modules/mimic-fn/package.json +42 -0
  256. package/node_modules/mimic-fn/readme.md +69 -0
  257. package/node_modules/minimatch/LICENSE.md +55 -0
  258. package/node_modules/minimatch/README.md +528 -0
  259. package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts +2 -0
  260. package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts.map +1 -0
  261. package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +14 -0
  262. package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +1 -0
  263. package/node_modules/minimatch/dist/commonjs/ast.d.ts +22 -0
  264. package/node_modules/minimatch/dist/commonjs/ast.d.ts.map +1 -0
  265. package/node_modules/minimatch/dist/commonjs/ast.js +846 -0
  266. package/node_modules/minimatch/dist/commonjs/ast.js.map +1 -0
  267. package/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts +8 -0
  268. package/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts.map +1 -0
  269. package/node_modules/minimatch/dist/commonjs/brace-expressions.js +150 -0
  270. package/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +1 -0
  271. package/node_modules/minimatch/dist/commonjs/escape.d.ts +15 -0
  272. package/node_modules/minimatch/dist/commonjs/escape.d.ts.map +1 -0
  273. package/node_modules/minimatch/dist/commonjs/escape.js +30 -0
  274. package/node_modules/minimatch/dist/commonjs/escape.js.map +1 -0
  275. package/node_modules/minimatch/dist/commonjs/index.d.ts +174 -0
  276. package/node_modules/minimatch/dist/commonjs/index.d.ts.map +1 -0
  277. package/node_modules/minimatch/dist/commonjs/index.js +1121 -0
  278. package/node_modules/minimatch/dist/commonjs/index.js.map +1 -0
  279. package/node_modules/minimatch/dist/commonjs/package.json +3 -0
  280. package/node_modules/minimatch/dist/commonjs/unescape.d.ts +22 -0
  281. package/node_modules/minimatch/dist/commonjs/unescape.d.ts.map +1 -0
  282. package/node_modules/minimatch/dist/commonjs/unescape.js +38 -0
  283. package/node_modules/minimatch/dist/commonjs/unescape.js.map +1 -0
  284. package/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts +2 -0
  285. package/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts.map +1 -0
  286. package/node_modules/minimatch/dist/esm/assert-valid-pattern.js +10 -0
  287. package/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map +1 -0
  288. package/node_modules/minimatch/dist/esm/ast.d.ts +22 -0
  289. package/node_modules/minimatch/dist/esm/ast.d.ts.map +1 -0
  290. package/node_modules/minimatch/dist/esm/ast.js +842 -0
  291. package/node_modules/minimatch/dist/esm/ast.js.map +1 -0
  292. package/node_modules/minimatch/dist/esm/brace-expressions.d.ts +8 -0
  293. package/node_modules/minimatch/dist/esm/brace-expressions.d.ts.map +1 -0
  294. package/node_modules/minimatch/dist/esm/brace-expressions.js +146 -0
  295. package/node_modules/minimatch/dist/esm/brace-expressions.js.map +1 -0
  296. package/node_modules/minimatch/dist/esm/escape.d.ts +15 -0
  297. package/node_modules/minimatch/dist/esm/escape.d.ts.map +1 -0
  298. package/node_modules/minimatch/dist/esm/escape.js +26 -0
  299. package/node_modules/minimatch/dist/esm/escape.js.map +1 -0
  300. package/node_modules/minimatch/dist/esm/index.d.ts +174 -0
  301. package/node_modules/minimatch/dist/esm/index.d.ts.map +1 -0
  302. package/node_modules/minimatch/dist/esm/index.js +1108 -0
  303. package/node_modules/minimatch/dist/esm/index.js.map +1 -0
  304. package/node_modules/minimatch/dist/esm/package.json +3 -0
  305. package/node_modules/minimatch/dist/esm/unescape.d.ts +22 -0
  306. package/node_modules/minimatch/dist/esm/unescape.d.ts.map +1 -0
  307. package/node_modules/minimatch/dist/esm/unescape.js +34 -0
  308. package/node_modules/minimatch/dist/esm/unescape.js.map +1 -0
  309. package/node_modules/minimatch/package.json +67 -0
  310. package/node_modules/minipass/LICENSE.md +55 -0
  311. package/node_modules/minipass/README.md +825 -0
  312. package/node_modules/minipass/dist/commonjs/index.d.ts +545 -0
  313. package/node_modules/minipass/dist/commonjs/index.d.ts.map +1 -0
  314. package/node_modules/minipass/dist/commonjs/index.js +1038 -0
  315. package/node_modules/minipass/dist/commonjs/index.js.map +1 -0
  316. package/node_modules/minipass/dist/commonjs/package.json +3 -0
  317. package/node_modules/minipass/dist/esm/index.d.ts +545 -0
  318. package/node_modules/minipass/dist/esm/index.d.ts.map +1 -0
  319. package/node_modules/minipass/dist/esm/index.js +1020 -0
  320. package/node_modules/minipass/dist/esm/index.js.map +1 -0
  321. package/node_modules/minipass/dist/esm/package.json +3 -0
  322. package/node_modules/minipass/package.json +77 -0
  323. package/node_modules/node-domexception/.history/README_20210527203617.md +2 -0
  324. package/node_modules/node-domexception/.history/README_20210527212714.md +41 -0
  325. package/node_modules/node-domexception/.history/README_20210527213345.md +36 -0
  326. package/node_modules/node-domexception/.history/README_20210527213411.md +36 -0
  327. package/node_modules/node-domexception/.history/README_20210527213803.md +36 -0
  328. package/node_modules/node-domexception/.history/README_20210527214323.md +38 -0
  329. package/node_modules/node-domexception/.history/README_20210527214408.md +38 -0
  330. package/node_modules/node-domexception/.history/index_20210527203842.js +0 -0
  331. package/node_modules/node-domexception/.history/index_20210527203947.js +8 -0
  332. package/node_modules/node-domexception/.history/index_20210527204259.js +9 -0
  333. package/node_modules/node-domexception/.history/index_20210527204418.js +9 -0
  334. package/node_modules/node-domexception/.history/index_20210527204756.js +11 -0
  335. package/node_modules/node-domexception/.history/index_20210527204833.js +11 -0
  336. package/node_modules/node-domexception/.history/index_20210527211208.js +15 -0
  337. package/node_modules/node-domexception/.history/index_20210527211248.js +15 -0
  338. package/node_modules/node-domexception/.history/index_20210527212722.js +23 -0
  339. package/node_modules/node-domexception/.history/index_20210527212731.js +23 -0
  340. package/node_modules/node-domexception/.history/index_20210527212746.js +15 -0
  341. package/node_modules/node-domexception/.history/index_20210527212900.js +16 -0
  342. package/node_modules/node-domexception/.history/index_20210527213022.js +16 -0
  343. package/node_modules/node-domexception/.history/index_20210527213822.js +16 -0
  344. package/node_modules/node-domexception/.history/index_20210527213843.js +17 -0
  345. package/node_modules/node-domexception/.history/index_20210527213852.js +17 -0
  346. package/node_modules/node-domexception/.history/index_20210527213910.js +16 -0
  347. package/node_modules/node-domexception/.history/index_20210527214034.js +16 -0
  348. package/node_modules/node-domexception/.history/index_20210527214643.js +41 -0
  349. package/node_modules/node-domexception/.history/index_20210527214654.js +41 -0
  350. package/node_modules/node-domexception/.history/index_20210527214700.js +16 -0
  351. package/node_modules/node-domexception/.history/package_20210527203733.json +19 -0
  352. package/node_modules/node-domexception/.history/package_20210527203825.json +16 -0
  353. package/node_modules/node-domexception/.history/package_20210527204621.json +19 -0
  354. package/node_modules/node-domexception/.history/package_20210527204913.json +25 -0
  355. package/node_modules/node-domexception/.history/package_20210527204925.json +25 -0
  356. package/node_modules/node-domexception/.history/package_20210527205145.json +29 -0
  357. package/node_modules/node-domexception/.history/package_20210527205156.json +29 -0
  358. package/node_modules/node-domexception/.history/test_20210527205603.js +0 -0
  359. package/node_modules/node-domexception/.history/test_20210527205957.js +3 -0
  360. package/node_modules/node-domexception/.history/test_20210527210021.js +3 -0
  361. package/node_modules/node-domexception/LICENSE +21 -0
  362. package/node_modules/node-domexception/README.md +46 -0
  363. package/node_modules/node-domexception/index.js +16 -0
  364. package/node_modules/node-domexception/package.json +29 -0
  365. package/node_modules/node-fetch/@types/index.d.ts +219 -0
  366. package/node_modules/node-fetch/LICENSE.md +22 -0
  367. package/node_modules/node-fetch/README.md +872 -0
  368. package/node_modules/node-fetch/package.json +131 -0
  369. package/node_modules/node-fetch/src/body.js +397 -0
  370. package/node_modules/node-fetch/src/errors/abort-error.js +10 -0
  371. package/node_modules/node-fetch/src/errors/base.js +17 -0
  372. package/node_modules/node-fetch/src/errors/fetch-error.js +26 -0
  373. package/node_modules/node-fetch/src/headers.js +267 -0
  374. package/node_modules/node-fetch/src/index.js +417 -0
  375. package/node_modules/node-fetch/src/request.js +313 -0
  376. package/node_modules/node-fetch/src/response.js +160 -0
  377. package/node_modules/node-fetch/src/utils/get-search.js +9 -0
  378. package/node_modules/node-fetch/src/utils/is-redirect.js +11 -0
  379. package/node_modules/node-fetch/src/utils/is.js +87 -0
  380. package/node_modules/node-fetch/src/utils/multipart-parser.js +432 -0
  381. package/node_modules/node-fetch/src/utils/referrer.js +340 -0
  382. package/node_modules/onetime/index.d.ts +64 -0
  383. package/node_modules/onetime/index.js +44 -0
  384. package/node_modules/onetime/license +9 -0
  385. package/node_modules/onetime/package.json +43 -0
  386. package/node_modules/onetime/readme.md +94 -0
  387. package/node_modules/ora/index.d.ts +277 -0
  388. package/node_modules/ora/index.js +407 -0
  389. package/node_modules/ora/license +9 -0
  390. package/node_modules/ora/package.json +57 -0
  391. package/node_modules/ora/readme.md +264 -0
  392. package/node_modules/path-scurry/LICENSE.md +55 -0
  393. package/node_modules/path-scurry/README.md +636 -0
  394. package/node_modules/path-scurry/dist/commonjs/index.d.ts +1115 -0
  395. package/node_modules/path-scurry/dist/commonjs/index.d.ts.map +1 -0
  396. package/node_modules/path-scurry/dist/commonjs/index.js +2018 -0
  397. package/node_modules/path-scurry/dist/commonjs/index.js.map +1 -0
  398. package/node_modules/path-scurry/dist/commonjs/package.json +3 -0
  399. package/node_modules/path-scurry/dist/esm/index.d.ts +1115 -0
  400. package/node_modules/path-scurry/dist/esm/index.d.ts.map +1 -0
  401. package/node_modules/path-scurry/dist/esm/index.js +1983 -0
  402. package/node_modules/path-scurry/dist/esm/index.js.map +1 -0
  403. package/node_modules/path-scurry/dist/esm/package.json +3 -0
  404. package/node_modules/path-scurry/package.json +72 -0
  405. package/node_modules/readable-stream/CONTRIBUTING.md +38 -0
  406. package/node_modules/readable-stream/GOVERNANCE.md +136 -0
  407. package/node_modules/readable-stream/LICENSE +47 -0
  408. package/node_modules/readable-stream/README.md +106 -0
  409. package/node_modules/readable-stream/errors-browser.js +127 -0
  410. package/node_modules/readable-stream/errors.js +116 -0
  411. package/node_modules/readable-stream/experimentalWarning.js +17 -0
  412. package/node_modules/readable-stream/lib/_stream_duplex.js +126 -0
  413. package/node_modules/readable-stream/lib/_stream_passthrough.js +37 -0
  414. package/node_modules/readable-stream/lib/_stream_readable.js +1027 -0
  415. package/node_modules/readable-stream/lib/_stream_transform.js +190 -0
  416. package/node_modules/readable-stream/lib/_stream_writable.js +641 -0
  417. package/node_modules/readable-stream/lib/internal/streams/async_iterator.js +180 -0
  418. package/node_modules/readable-stream/lib/internal/streams/buffer_list.js +183 -0
  419. package/node_modules/readable-stream/lib/internal/streams/destroy.js +96 -0
  420. package/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +86 -0
  421. package/node_modules/readable-stream/lib/internal/streams/from-browser.js +3 -0
  422. package/node_modules/readable-stream/lib/internal/streams/from.js +52 -0
  423. package/node_modules/readable-stream/lib/internal/streams/pipeline.js +86 -0
  424. package/node_modules/readable-stream/lib/internal/streams/state.js +22 -0
  425. package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
  426. package/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
  427. package/node_modules/readable-stream/package.json +68 -0
  428. package/node_modules/readable-stream/readable-browser.js +9 -0
  429. package/node_modules/readable-stream/readable.js +16 -0
  430. package/node_modules/restore-cursor/index.d.ts +13 -0
  431. package/node_modules/restore-cursor/index.js +9 -0
  432. package/node_modules/restore-cursor/license +9 -0
  433. package/node_modules/restore-cursor/package.json +52 -0
  434. package/node_modules/restore-cursor/readme.md +26 -0
  435. package/node_modules/safe-buffer/LICENSE +21 -0
  436. package/node_modules/safe-buffer/README.md +584 -0
  437. package/node_modules/safe-buffer/index.d.ts +187 -0
  438. package/node_modules/safe-buffer/index.js +65 -0
  439. package/node_modules/safe-buffer/package.json +51 -0
  440. package/node_modules/signal-exit/LICENSE.txt +16 -0
  441. package/node_modules/signal-exit/README.md +39 -0
  442. package/node_modules/signal-exit/index.js +202 -0
  443. package/node_modules/signal-exit/package.json +38 -0
  444. package/node_modules/signal-exit/signals.js +53 -0
  445. package/node_modules/string_decoder/LICENSE +48 -0
  446. package/node_modules/string_decoder/README.md +47 -0
  447. package/node_modules/string_decoder/lib/string_decoder.js +296 -0
  448. package/node_modules/string_decoder/package.json +34 -0
  449. package/node_modules/strip-ansi/index.d.ts +17 -0
  450. package/node_modules/strip-ansi/index.js +4 -0
  451. package/node_modules/strip-ansi/license +9 -0
  452. package/node_modules/strip-ansi/package.json +54 -0
  453. package/node_modules/strip-ansi/readme.md +46 -0
  454. package/node_modules/supports-color/browser.js +5 -0
  455. package/node_modules/supports-color/index.js +135 -0
  456. package/node_modules/supports-color/license +9 -0
  457. package/node_modules/supports-color/package.json +53 -0
  458. package/node_modules/supports-color/readme.md +76 -0
  459. package/node_modules/util-deprecate/History.md +16 -0
  460. package/node_modules/util-deprecate/LICENSE +24 -0
  461. package/node_modules/util-deprecate/README.md +53 -0
  462. package/node_modules/util-deprecate/browser.js +67 -0
  463. package/node_modules/util-deprecate/node.js +6 -0
  464. package/node_modules/util-deprecate/package.json +27 -0
  465. package/node_modules/wcwidth/.npmignore +1 -0
  466. package/node_modules/wcwidth/LICENSE +30 -0
  467. package/node_modules/wcwidth/Readme.md +33 -0
  468. package/node_modules/wcwidth/combining.js +50 -0
  469. package/node_modules/wcwidth/docs/index.md +65 -0
  470. package/node_modules/wcwidth/index.js +99 -0
  471. package/node_modules/wcwidth/package.json +42 -0
  472. package/node_modules/wcwidth/test/index.js +64 -0
  473. package/node_modules/web-streams-polyfill/LICENSE +22 -0
  474. package/node_modules/web-streams-polyfill/README.md +110 -0
  475. package/node_modules/web-streams-polyfill/dist/polyfill.es2018.js +4765 -0
  476. package/node_modules/web-streams-polyfill/dist/polyfill.es2018.js.map +1 -0
  477. package/node_modules/web-streams-polyfill/dist/polyfill.es2018.min.js +9 -0
  478. package/node_modules/web-streams-polyfill/dist/polyfill.es2018.min.js.map +1 -0
  479. package/node_modules/web-streams-polyfill/dist/polyfill.es2018.mjs +4745 -0
  480. package/node_modules/web-streams-polyfill/dist/polyfill.es2018.mjs.map +1 -0
  481. package/node_modules/web-streams-polyfill/dist/polyfill.es6.js +4838 -0
  482. package/node_modules/web-streams-polyfill/dist/polyfill.es6.js.map +1 -0
  483. package/node_modules/web-streams-polyfill/dist/polyfill.es6.min.js +9 -0
  484. package/node_modules/web-streams-polyfill/dist/polyfill.es6.min.js.map +1 -0
  485. package/node_modules/web-streams-polyfill/dist/polyfill.es6.mjs +4818 -0
  486. package/node_modules/web-streams-polyfill/dist/polyfill.es6.mjs.map +1 -0
  487. package/node_modules/web-streams-polyfill/dist/polyfill.js +5011 -0
  488. package/node_modules/web-streams-polyfill/dist/polyfill.js.map +1 -0
  489. package/node_modules/web-streams-polyfill/dist/polyfill.min.js +9 -0
  490. package/node_modules/web-streams-polyfill/dist/polyfill.min.js.map +1 -0
  491. package/node_modules/web-streams-polyfill/dist/polyfill.mjs +4991 -0
  492. package/node_modules/web-streams-polyfill/dist/polyfill.mjs.map +1 -0
  493. package/node_modules/web-streams-polyfill/dist/ponyfill.es2018.js +4737 -0
  494. package/node_modules/web-streams-polyfill/dist/ponyfill.es2018.js.map +1 -0
  495. package/node_modules/web-streams-polyfill/dist/ponyfill.es2018.mjs +4717 -0
  496. package/node_modules/web-streams-polyfill/dist/ponyfill.es2018.mjs.map +1 -0
  497. package/node_modules/web-streams-polyfill/dist/ponyfill.es6.js +4810 -0
  498. package/node_modules/web-streams-polyfill/dist/ponyfill.es6.js.map +1 -0
  499. package/node_modules/web-streams-polyfill/dist/ponyfill.es6.mjs +4790 -0
  500. package/node_modules/web-streams-polyfill/dist/ponyfill.es6.mjs.map +1 -0
  501. package/node_modules/web-streams-polyfill/dist/ponyfill.js +4983 -0
  502. package/node_modules/web-streams-polyfill/dist/ponyfill.js.map +1 -0
  503. package/node_modules/web-streams-polyfill/dist/ponyfill.mjs +4963 -0
  504. package/node_modules/web-streams-polyfill/dist/ponyfill.mjs.map +1 -0
  505. package/node_modules/web-streams-polyfill/dist/types/polyfill.d.ts +24 -0
  506. package/node_modules/web-streams-polyfill/dist/types/ponyfill.d.ts +780 -0
  507. package/node_modules/web-streams-polyfill/dist/types/ts3.6/polyfill.d.ts +28 -0
  508. package/node_modules/web-streams-polyfill/dist/types/ts3.6/ponyfill.d.ts +821 -0
  509. package/node_modules/web-streams-polyfill/dist/types/tsdoc-metadata.json +11 -0
  510. package/node_modules/web-streams-polyfill/es2018/package.json +14 -0
  511. package/node_modules/web-streams-polyfill/es6/package.json +14 -0
  512. package/node_modules/web-streams-polyfill/package.json +83 -0
  513. package/node_modules/web-streams-polyfill/ponyfill/es2018/package.json +13 -0
  514. package/node_modules/web-streams-polyfill/ponyfill/es6/package.json +13 -0
  515. package/node_modules/web-streams-polyfill/ponyfill/package.json +13 -0
  516. package/package.json +26 -0
  517. package/version.json +18 -0
@@ -0,0 +1,1115 @@
1
+ import { LRUCache } from 'lru-cache';
2
+ import { posix, win32 } from 'node:path';
3
+ import { Minipass } from 'minipass';
4
+ import type { Dirent, Stats } from 'node:fs';
5
+ /**
6
+ * An object that will be used to override the default `fs`
7
+ * methods. Any methods that are not overridden will use Node's
8
+ * built-in implementations.
9
+ *
10
+ * - lstatSync
11
+ * - readdir (callback `withFileTypes` Dirent variant, used for
12
+ * readdirCB and most walks)
13
+ * - readdirSync
14
+ * - readlinkSync
15
+ * - realpathSync
16
+ * - promises: Object containing the following async methods:
17
+ * - lstat
18
+ * - readdir (Dirent variant only)
19
+ * - readlink
20
+ * - realpath
21
+ */
22
+ export interface FSOption {
23
+ lstatSync?: (path: string) => Stats;
24
+ readdir?: (path: string, options: {
25
+ withFileTypes: true;
26
+ }, cb: (er: NodeJS.ErrnoException | null, entries?: Dirent[]) => any) => void;
27
+ readdirSync?: (path: string, options: {
28
+ withFileTypes: true;
29
+ }) => Dirent[];
30
+ readlinkSync?: (path: string) => string;
31
+ realpathSync?: (path: string) => string;
32
+ promises?: {
33
+ lstat?: (path: string) => Promise<Stats>;
34
+ readdir?: (path: string, options: {
35
+ withFileTypes: true;
36
+ }) => Promise<Dirent[]>;
37
+ readlink?: (path: string) => Promise<string>;
38
+ realpath?: (path: string) => Promise<string>;
39
+ [k: string]: any;
40
+ };
41
+ [k: string]: any;
42
+ }
43
+ interface FSValue {
44
+ lstatSync: (path: string) => Stats;
45
+ readdir: (path: string, options: {
46
+ withFileTypes: true;
47
+ }, cb: (er: NodeJS.ErrnoException | null, entries?: Dirent[]) => any) => void;
48
+ readdirSync: (path: string, options: {
49
+ withFileTypes: true;
50
+ }) => Dirent[];
51
+ readlinkSync: (path: string) => string;
52
+ realpathSync: (path: string) => string;
53
+ promises: {
54
+ lstat: (path: string) => Promise<Stats>;
55
+ readdir: (path: string, options: {
56
+ withFileTypes: true;
57
+ }) => Promise<Dirent[]>;
58
+ readlink: (path: string) => Promise<string>;
59
+ realpath: (path: string) => Promise<string>;
60
+ [k: string]: any;
61
+ };
62
+ [k: string]: any;
63
+ }
64
+ export type Type = 'Unknown' | 'FIFO' | 'CharacterDevice' | 'Directory' | 'BlockDevice' | 'File' | 'SymbolicLink' | 'Socket';
65
+ /**
66
+ * Options that may be provided to the Path constructor
67
+ */
68
+ export interface PathOpts {
69
+ fullpath?: string;
70
+ relative?: string;
71
+ relativePosix?: string;
72
+ parent?: PathBase;
73
+ /**
74
+ * See {@link FSOption}
75
+ */
76
+ fs?: FSOption;
77
+ }
78
+ /**
79
+ * An LRUCache for storing resolved path strings or Path objects.
80
+ * @internal
81
+ */
82
+ export declare class ResolveCache extends LRUCache<string, string> {
83
+ constructor();
84
+ }
85
+ /**
86
+ * an LRUCache for storing child entries.
87
+ * @internal
88
+ */
89
+ export declare class ChildrenCache extends LRUCache<PathBase, Children> {
90
+ constructor(maxSize?: number);
91
+ }
92
+ /**
93
+ * Array of Path objects, plus a marker indicating the first provisional entry
94
+ *
95
+ * @internal
96
+ */
97
+ export type Children = PathBase[] & {
98
+ provisional: number;
99
+ };
100
+ declare const setAsCwd: unique symbol;
101
+ /**
102
+ * Path objects are sort of like a super-powered
103
+ * {@link https://nodejs.org/docs/latest/api/fs.html#class-fsdirent fs.Dirent}
104
+ *
105
+ * Each one represents a single filesystem entry on disk, which may or may not
106
+ * exist. It includes methods for reading various types of information via
107
+ * lstat, readlink, and readdir, and caches all information to the greatest
108
+ * degree possible.
109
+ *
110
+ * Note that fs operations that would normally throw will instead return an
111
+ * "empty" value. This is in order to prevent excessive overhead from error
112
+ * stack traces.
113
+ */
114
+ export declare abstract class PathBase implements Dirent {
115
+ #private;
116
+ /**
117
+ * the basename of this path
118
+ *
119
+ * **Important**: *always* test the path name against any test string
120
+ * usingthe {@link isNamed} method, and not by directly comparing this
121
+ * string. Otherwise, unicode path strings that the system sees as identical
122
+ * will not be properly treated as the same path, leading to incorrect
123
+ * behavior and possible security issues.
124
+ */
125
+ name: string;
126
+ /**
127
+ * the Path entry corresponding to the path root.
128
+ *
129
+ * @internal
130
+ */
131
+ root: PathBase;
132
+ /**
133
+ * All roots found within the current PathScurry family
134
+ *
135
+ * @internal
136
+ */
137
+ roots: {
138
+ [k: string]: PathBase;
139
+ };
140
+ /**
141
+ * a reference to the parent path, or undefined in the case of root entries
142
+ *
143
+ * @internal
144
+ */
145
+ parent?: PathBase;
146
+ /**
147
+ * boolean indicating whether paths are compared case-insensitively
148
+ * @internal
149
+ */
150
+ nocase: boolean;
151
+ /**
152
+ * boolean indicating that this path is the current working directory
153
+ * of the PathScurry collection that contains it.
154
+ */
155
+ isCWD: boolean;
156
+ /**
157
+ * the string or regexp used to split paths. On posix, it is `'/'`, and on
158
+ * windows it is a RegExp matching either `'/'` or `'\\'`
159
+ */
160
+ abstract splitSep: string | RegExp;
161
+ /**
162
+ * The path separator string to use when joining paths
163
+ */
164
+ abstract sep: string;
165
+ get dev(): number | undefined;
166
+ get mode(): number | undefined;
167
+ get nlink(): number | undefined;
168
+ get uid(): number | undefined;
169
+ get gid(): number | undefined;
170
+ get rdev(): number | undefined;
171
+ get blksize(): number | undefined;
172
+ get ino(): number | undefined;
173
+ get size(): number | undefined;
174
+ get blocks(): number | undefined;
175
+ get atimeMs(): number | undefined;
176
+ get mtimeMs(): number | undefined;
177
+ get ctimeMs(): number | undefined;
178
+ get birthtimeMs(): number | undefined;
179
+ get atime(): Date | undefined;
180
+ get mtime(): Date | undefined;
181
+ get ctime(): Date | undefined;
182
+ get birthtime(): Date | undefined;
183
+ /**
184
+ * This property is for compatibility with the Dirent class as of
185
+ * Node v20, where Dirent['parentPath'] refers to the path of the
186
+ * directory that was passed to readdir. For root entries, it's the path
187
+ * to the entry itself.
188
+ */
189
+ get parentPath(): string;
190
+ /**
191
+ * Deprecated alias for Dirent['parentPath'] Somewhat counterintuitively,
192
+ * this property refers to the *parent* path, not the path object itself.
193
+ *
194
+ * @deprecated
195
+ */
196
+ get path(): string;
197
+ /**
198
+ * Do not create new Path objects directly. They should always be accessed
199
+ * via the PathScurry class or other methods on the Path class.
200
+ *
201
+ * @internal
202
+ */
203
+ constructor(name: string, type: number | undefined, root: PathBase | undefined, roots: {
204
+ [k: string]: PathBase;
205
+ }, nocase: boolean, children: ChildrenCache, opts: PathOpts);
206
+ /**
207
+ * Returns the depth of the Path object from its root.
208
+ *
209
+ * For example, a path at `/foo/bar` would have a depth of 2.
210
+ */
211
+ depth(): number;
212
+ /**
213
+ * @internal
214
+ */
215
+ abstract getRootString(path: string): string;
216
+ /**
217
+ * @internal
218
+ */
219
+ abstract getRoot(rootPath: string): PathBase;
220
+ /**
221
+ * @internal
222
+ */
223
+ abstract newChild(name: string, type?: number, opts?: PathOpts): PathBase;
224
+ /**
225
+ * @internal
226
+ */
227
+ childrenCache(): ChildrenCache;
228
+ /**
229
+ * Get the Path object referenced by the string path, resolved from this Path
230
+ */
231
+ resolve(path?: string): PathBase;
232
+ /**
233
+ * Returns the cached children Path objects, if still available. If they
234
+ * have fallen out of the cache, then returns an empty array, and resets the
235
+ * READDIR_CALLED bit, so that future calls to readdir() will require an fs
236
+ * lookup.
237
+ *
238
+ * @internal
239
+ */
240
+ children(): Children;
241
+ /**
242
+ * Resolves a path portion and returns or creates the child Path.
243
+ *
244
+ * Returns `this` if pathPart is `''` or `'.'`, or `parent` if pathPart is
245
+ * `'..'`.
246
+ *
247
+ * This should not be called directly. If `pathPart` contains any path
248
+ * separators, it will lead to unsafe undefined behavior.
249
+ *
250
+ * Use `Path.resolve()` instead.
251
+ *
252
+ * @internal
253
+ */
254
+ child(pathPart: string, opts?: PathOpts): PathBase;
255
+ /**
256
+ * The relative path from the cwd. If it does not share an ancestor with
257
+ * the cwd, then this ends up being equivalent to the fullpath()
258
+ */
259
+ relative(): string;
260
+ /**
261
+ * The relative path from the cwd, using / as the path separator.
262
+ * If it does not share an ancestor with
263
+ * the cwd, then this ends up being equivalent to the fullpathPosix()
264
+ * On posix systems, this is identical to relative().
265
+ */
266
+ relativePosix(): string;
267
+ /**
268
+ * The fully resolved path string for this Path entry
269
+ */
270
+ fullpath(): string;
271
+ /**
272
+ * On platforms other than windows, this is identical to fullpath.
273
+ *
274
+ * On windows, this is overridden to return the forward-slash form of the
275
+ * full UNC path.
276
+ */
277
+ fullpathPosix(): string;
278
+ /**
279
+ * Is the Path of an unknown type?
280
+ *
281
+ * Note that we might know *something* about it if there has been a previous
282
+ * filesystem operation, for example that it does not exist, or is not a
283
+ * link, or whether it has child entries.
284
+ */
285
+ isUnknown(): boolean;
286
+ isType(type: Type): boolean;
287
+ getType(): Type;
288
+ /**
289
+ * Is the Path a regular file?
290
+ */
291
+ isFile(): boolean;
292
+ /**
293
+ * Is the Path a directory?
294
+ */
295
+ isDirectory(): boolean;
296
+ /**
297
+ * Is the path a character device?
298
+ */
299
+ isCharacterDevice(): boolean;
300
+ /**
301
+ * Is the path a block device?
302
+ */
303
+ isBlockDevice(): boolean;
304
+ /**
305
+ * Is the path a FIFO pipe?
306
+ */
307
+ isFIFO(): boolean;
308
+ /**
309
+ * Is the path a socket?
310
+ */
311
+ isSocket(): boolean;
312
+ /**
313
+ * Is the path a symbolic link?
314
+ */
315
+ isSymbolicLink(): boolean;
316
+ /**
317
+ * Return the entry if it has been subject of a successful lstat, or
318
+ * undefined otherwise.
319
+ *
320
+ * Does not read the filesystem, so an undefined result *could* simply
321
+ * mean that we haven't called lstat on it.
322
+ */
323
+ lstatCached(): PathBase | undefined;
324
+ /**
325
+ * Return the cached link target if the entry has been the subject of a
326
+ * successful readlink, or undefined otherwise.
327
+ *
328
+ * Does not read the filesystem, so an undefined result *could* just mean we
329
+ * don't have any cached data. Only use it if you are very sure that a
330
+ * readlink() has been called at some point.
331
+ */
332
+ readlinkCached(): PathBase | undefined;
333
+ /**
334
+ * Returns the cached realpath target if the entry has been the subject
335
+ * of a successful realpath, or undefined otherwise.
336
+ *
337
+ * Does not read the filesystem, so an undefined result *could* just mean we
338
+ * don't have any cached data. Only use it if you are very sure that a
339
+ * realpath() has been called at some point.
340
+ */
341
+ realpathCached(): PathBase | undefined;
342
+ /**
343
+ * Returns the cached child Path entries array if the entry has been the
344
+ * subject of a successful readdir(), or [] otherwise.
345
+ *
346
+ * Does not read the filesystem, so an empty array *could* just mean we
347
+ * don't have any cached data. Only use it if you are very sure that a
348
+ * readdir() has been called recently enough to still be valid.
349
+ */
350
+ readdirCached(): PathBase[];
351
+ /**
352
+ * Return true if it's worth trying to readlink. Ie, we don't (yet) have
353
+ * any indication that readlink will definitely fail.
354
+ *
355
+ * Returns false if the path is known to not be a symlink, if a previous
356
+ * readlink failed, or if the entry does not exist.
357
+ */
358
+ canReadlink(): boolean;
359
+ /**
360
+ * Return true if readdir has previously been successfully called on this
361
+ * path, indicating that cachedReaddir() is likely valid.
362
+ */
363
+ calledReaddir(): boolean;
364
+ /**
365
+ * Returns true if the path is known to not exist. That is, a previous lstat
366
+ * or readdir failed to verify its existence when that would have been
367
+ * expected, or a parent entry was marked either enoent or enotdir.
368
+ */
369
+ isENOENT(): boolean;
370
+ /**
371
+ * Return true if the path is a match for the given path name. This handles
372
+ * case sensitivity and unicode normalization.
373
+ *
374
+ * Note: even on case-sensitive systems, it is **not** safe to test the
375
+ * equality of the `.name` property to determine whether a given pathname
376
+ * matches, due to unicode normalization mismatches.
377
+ *
378
+ * Always use this method instead of testing the `path.name` property
379
+ * directly.
380
+ */
381
+ isNamed(n: string): boolean;
382
+ /**
383
+ * Return the Path object corresponding to the target of a symbolic link.
384
+ *
385
+ * If the Path is not a symbolic link, or if the readlink call fails for any
386
+ * reason, `undefined` is returned.
387
+ *
388
+ * Result is cached, and thus may be outdated if the filesystem is mutated.
389
+ */
390
+ readlink(): Promise<PathBase | undefined>;
391
+ /**
392
+ * Synchronous {@link PathBase.readlink}
393
+ */
394
+ readlinkSync(): PathBase | undefined;
395
+ /**
396
+ * Call lstat() on this Path, and update all known information that can be
397
+ * determined.
398
+ *
399
+ * Note that unlike `fs.lstat()`, the returned value does not contain some
400
+ * information, such as `mode`, `dev`, `nlink`, and `ino`. If that
401
+ * information is required, you will need to call `fs.lstat` yourself.
402
+ *
403
+ * If the Path refers to a nonexistent file, or if the lstat call fails for
404
+ * any reason, `undefined` is returned. Otherwise the updated Path object is
405
+ * returned.
406
+ *
407
+ * Results are cached, and thus may be out of date if the filesystem is
408
+ * mutated.
409
+ */
410
+ lstat(): Promise<PathBase | undefined>;
411
+ /**
412
+ * synchronous {@link PathBase.lstat}
413
+ */
414
+ lstatSync(): PathBase | undefined;
415
+ /**
416
+ * Standard node-style callback interface to get list of directory entries.
417
+ *
418
+ * If the Path cannot or does not contain any children, then an empty array
419
+ * is returned.
420
+ *
421
+ * Results are cached, and thus may be out of date if the filesystem is
422
+ * mutated.
423
+ *
424
+ * @param cb The callback called with (er, entries). Note that the `er`
425
+ * param is somewhat extraneous, as all readdir() errors are handled and
426
+ * simply result in an empty set of entries being returned.
427
+ * @param allowZalgo Boolean indicating that immediately known results should
428
+ * *not* be deferred with `queueMicrotask`. Defaults to `false`. Release
429
+ * zalgo at your peril, the dark pony lord is devious and unforgiving.
430
+ */
431
+ readdirCB(cb: (er: NodeJS.ErrnoException | null, entries: PathBase[]) => any, allowZalgo?: boolean): void;
432
+ /**
433
+ * Return an array of known child entries.
434
+ *
435
+ * If the Path cannot or does not contain any children, then an empty array
436
+ * is returned.
437
+ *
438
+ * Results are cached, and thus may be out of date if the filesystem is
439
+ * mutated.
440
+ */
441
+ readdir(): Promise<PathBase[]>;
442
+ /**
443
+ * synchronous {@link PathBase.readdir}
444
+ */
445
+ readdirSync(): PathBase[];
446
+ canReaddir(): boolean;
447
+ shouldWalk(dirs: Set<PathBase | undefined>, walkFilter?: (e: PathBase) => boolean): boolean;
448
+ /**
449
+ * Return the Path object corresponding to path as resolved
450
+ * by realpath(3).
451
+ *
452
+ * If the realpath call fails for any reason, `undefined` is returned.
453
+ *
454
+ * Result is cached, and thus may be outdated if the filesystem is mutated.
455
+ * On success, returns a Path object.
456
+ */
457
+ realpath(): Promise<PathBase | undefined>;
458
+ /**
459
+ * Synchronous {@link realpath}
460
+ */
461
+ realpathSync(): PathBase | undefined;
462
+ /**
463
+ * Internal method to mark this Path object as the scurry cwd,
464
+ * called by {@link PathScurry#chdir}
465
+ *
466
+ * @internal
467
+ */
468
+ [setAsCwd](oldCwd: PathBase): void;
469
+ }
470
+ /**
471
+ * Path class used on win32 systems
472
+ *
473
+ * Uses `'\\'` as the path separator for returned paths, either `'\\'` or `'/'`
474
+ * as the path separator for parsing paths.
475
+ */
476
+ export declare class PathWin32 extends PathBase {
477
+ /**
478
+ * Separator for generating path strings.
479
+ */
480
+ sep: '\\';
481
+ /**
482
+ * Separator for parsing path strings.
483
+ */
484
+ splitSep: RegExp;
485
+ /**
486
+ * Do not create new Path objects directly. They should always be accessed
487
+ * via the PathScurry class or other methods on the Path class.
488
+ *
489
+ * @internal
490
+ */
491
+ constructor(name: string, type: number | undefined, root: PathBase | undefined, roots: {
492
+ [k: string]: PathBase;
493
+ }, nocase: boolean, children: ChildrenCache, opts: PathOpts);
494
+ /**
495
+ * @internal
496
+ */
497
+ newChild(name: string, type?: number, opts?: PathOpts): PathWin32;
498
+ /**
499
+ * @internal
500
+ */
501
+ getRootString(path: string): string;
502
+ /**
503
+ * @internal
504
+ */
505
+ getRoot(rootPath: string): PathBase;
506
+ /**
507
+ * @internal
508
+ */
509
+ sameRoot(rootPath: string, compare?: string): boolean;
510
+ }
511
+ /**
512
+ * Path class used on all posix systems.
513
+ *
514
+ * Uses `'/'` as the path separator.
515
+ */
516
+ export declare class PathPosix extends PathBase {
517
+ /**
518
+ * separator for parsing path strings
519
+ */
520
+ splitSep: '/';
521
+ /**
522
+ * separator for generating path strings
523
+ */
524
+ sep: '/';
525
+ /**
526
+ * Do not create new Path objects directly. They should always be accessed
527
+ * via the PathScurry class or other methods on the Path class.
528
+ *
529
+ * @internal
530
+ */
531
+ constructor(name: string, type: number | undefined, root: PathBase | undefined, roots: {
532
+ [k: string]: PathBase;
533
+ }, nocase: boolean, children: ChildrenCache, opts: PathOpts);
534
+ /**
535
+ * @internal
536
+ */
537
+ getRootString(path: string): string;
538
+ /**
539
+ * @internal
540
+ */
541
+ getRoot(_rootPath: string): PathBase;
542
+ /**
543
+ * @internal
544
+ */
545
+ newChild(name: string, type?: number, opts?: PathOpts): PathPosix;
546
+ }
547
+ /**
548
+ * Options that may be provided to the PathScurry constructor
549
+ */
550
+ export interface PathScurryOpts {
551
+ /**
552
+ * perform case-insensitive path matching. Default based on platform
553
+ * subclass.
554
+ */
555
+ nocase?: boolean;
556
+ /**
557
+ * Number of Path entries to keep in the cache of Path child references.
558
+ *
559
+ * Setting this higher than 65536 will dramatically increase the data
560
+ * consumption and construction time overhead of each PathScurry.
561
+ *
562
+ * Setting this value to 256 or lower will significantly reduce the data
563
+ * consumption and construction time overhead, but may also reduce resolve()
564
+ * and readdir() performance on large filesystems.
565
+ *
566
+ * Default `16384`.
567
+ */
568
+ childrenCacheSize?: number;
569
+ /**
570
+ * An object that overrides the built-in functions from the fs and
571
+ * fs/promises modules.
572
+ *
573
+ * See {@link FSOption}
574
+ */
575
+ fs?: FSOption;
576
+ }
577
+ /**
578
+ * The base class for all PathScurry classes, providing the interface for path
579
+ * resolution and filesystem operations.
580
+ *
581
+ * Typically, you should *not* instantiate this class directly, but rather one
582
+ * of the platform-specific classes, or the exported {@link PathScurry} which
583
+ * defaults to the current platform.
584
+ */
585
+ export declare abstract class PathScurryBase {
586
+ #private;
587
+ /**
588
+ * The root Path entry for the current working directory of this Scurry
589
+ */
590
+ root: PathBase;
591
+ /**
592
+ * The string path for the root of this Scurry's current working directory
593
+ */
594
+ rootPath: string;
595
+ /**
596
+ * A collection of all roots encountered, referenced by rootPath
597
+ */
598
+ roots: {
599
+ [k: string]: PathBase;
600
+ };
601
+ /**
602
+ * The Path entry corresponding to this PathScurry's current working directory.
603
+ */
604
+ cwd: PathBase;
605
+ /**
606
+ * Perform path comparisons case-insensitively.
607
+ *
608
+ * Defaults true on Darwin and Windows systems, false elsewhere.
609
+ */
610
+ nocase: boolean;
611
+ /**
612
+ * The path separator used for parsing paths
613
+ *
614
+ * `'/'` on Posix systems, either `'/'` or `'\\'` on Windows
615
+ */
616
+ abstract sep: string | RegExp;
617
+ /**
618
+ * This class should not be instantiated directly.
619
+ *
620
+ * Use PathScurryWin32, PathScurryDarwin, PathScurryPosix, or PathScurry
621
+ *
622
+ * @internal
623
+ */
624
+ constructor(cwd: (URL | string) | undefined, pathImpl: typeof win32 | typeof posix, sep: string | RegExp, { nocase, childrenCacheSize, fs, }?: PathScurryOpts);
625
+ /**
626
+ * Get the depth of a provided path, string, or the cwd
627
+ */
628
+ depth(path?: Path | string): number;
629
+ /**
630
+ * Parse the root portion of a path string
631
+ *
632
+ * @internal
633
+ */
634
+ abstract parseRootPath(dir: string): string;
635
+ /**
636
+ * create a new Path to use as root during construction.
637
+ *
638
+ * @internal
639
+ */
640
+ abstract newRoot(fs: FSValue): PathBase;
641
+ /**
642
+ * Determine whether a given path string is absolute
643
+ */
644
+ abstract isAbsolute(p: string): boolean;
645
+ /**
646
+ * Return the cache of child entries. Exposed so subclasses can create
647
+ * child Path objects in a platform-specific way.
648
+ *
649
+ * @internal
650
+ */
651
+ childrenCache(): ChildrenCache;
652
+ /**
653
+ * Resolve one or more path strings to a resolved string
654
+ *
655
+ * Same interface as require('path').resolve.
656
+ *
657
+ * Much faster than path.resolve() when called multiple times for the same
658
+ * path, because the resolved Path objects are cached. Much slower
659
+ * otherwise.
660
+ */
661
+ resolve(...paths: string[]): string;
662
+ /**
663
+ * Resolve one or more path strings to a resolved string, returning
664
+ * the posix path. Identical to .resolve() on posix systems, but on
665
+ * windows will return a forward-slash separated UNC path.
666
+ *
667
+ * Same interface as require('path').resolve.
668
+ *
669
+ * Much faster than path.resolve() when called multiple times for the same
670
+ * path, because the resolved Path objects are cached. Much slower
671
+ * otherwise.
672
+ */
673
+ resolvePosix(...paths: string[]): string;
674
+ /**
675
+ * find the relative path from the cwd to the supplied path string or entry
676
+ */
677
+ relative(entry?: PathBase | string): string;
678
+ /**
679
+ * find the relative path from the cwd to the supplied path string or
680
+ * entry, using / as the path delimiter, even on Windows.
681
+ */
682
+ relativePosix(entry?: PathBase | string): string;
683
+ /**
684
+ * Return the basename for the provided string or Path object
685
+ */
686
+ basename(entry?: PathBase | string): string;
687
+ /**
688
+ * Return the dirname for the provided string or Path object
689
+ */
690
+ dirname(entry?: PathBase | string): string;
691
+ /**
692
+ * Return an array of known child entries.
693
+ *
694
+ * First argument may be either a string, or a Path object.
695
+ *
696
+ * If the Path cannot or does not contain any children, then an empty array
697
+ * is returned.
698
+ *
699
+ * Results are cached, and thus may be out of date if the filesystem is
700
+ * mutated.
701
+ *
702
+ * Unlike `fs.readdir()`, the `withFileTypes` option defaults to `true`. Set
703
+ * `{ withFileTypes: false }` to return strings.
704
+ */
705
+ readdir(): Promise<PathBase[]>;
706
+ readdir(opts: {
707
+ withFileTypes: true;
708
+ }): Promise<PathBase[]>;
709
+ readdir(opts: {
710
+ withFileTypes: false;
711
+ }): Promise<string[]>;
712
+ readdir(opts: {
713
+ withFileTypes: boolean;
714
+ }): Promise<PathBase[] | string[]>;
715
+ readdir(entry: PathBase | string): Promise<PathBase[]>;
716
+ readdir(entry: PathBase | string, opts: {
717
+ withFileTypes: true;
718
+ }): Promise<PathBase[]>;
719
+ readdir(entry: PathBase | string, opts: {
720
+ withFileTypes: false;
721
+ }): Promise<string[]>;
722
+ readdir(entry: PathBase | string, opts: {
723
+ withFileTypes: boolean;
724
+ }): Promise<PathBase[] | string[]>;
725
+ /**
726
+ * synchronous {@link PathScurryBase.readdir}
727
+ */
728
+ readdirSync(): PathBase[];
729
+ readdirSync(opts: {
730
+ withFileTypes: true;
731
+ }): PathBase[];
732
+ readdirSync(opts: {
733
+ withFileTypes: false;
734
+ }): string[];
735
+ readdirSync(opts: {
736
+ withFileTypes: boolean;
737
+ }): PathBase[] | string[];
738
+ readdirSync(entry: PathBase | string): PathBase[];
739
+ readdirSync(entry: PathBase | string, opts: {
740
+ withFileTypes: true;
741
+ }): PathBase[];
742
+ readdirSync(entry: PathBase | string, opts: {
743
+ withFileTypes: false;
744
+ }): string[];
745
+ readdirSync(entry: PathBase | string, opts: {
746
+ withFileTypes: boolean;
747
+ }): PathBase[] | string[];
748
+ /**
749
+ * Call lstat() on the string or Path object, and update all known
750
+ * information that can be determined.
751
+ *
752
+ * Note that unlike `fs.lstat()`, the returned value does not contain some
753
+ * information, such as `mode`, `dev`, `nlink`, and `ino`. If that
754
+ * information is required, you will need to call `fs.lstat` yourself.
755
+ *
756
+ * If the Path refers to a nonexistent file, or if the lstat call fails for
757
+ * any reason, `undefined` is returned. Otherwise the updated Path object is
758
+ * returned.
759
+ *
760
+ * Results are cached, and thus may be out of date if the filesystem is
761
+ * mutated.
762
+ */
763
+ lstat(entry?: string | PathBase): Promise<PathBase | undefined>;
764
+ /**
765
+ * synchronous {@link PathScurryBase.lstat}
766
+ */
767
+ lstatSync(entry?: string | PathBase): PathBase | undefined;
768
+ /**
769
+ * Return the Path object or string path corresponding to the target of a
770
+ * symbolic link.
771
+ *
772
+ * If the path is not a symbolic link, or if the readlink call fails for any
773
+ * reason, `undefined` is returned.
774
+ *
775
+ * Result is cached, and thus may be outdated if the filesystem is mutated.
776
+ *
777
+ * `{withFileTypes}` option defaults to `false`.
778
+ *
779
+ * On success, returns a Path object if `withFileTypes` option is true,
780
+ * otherwise a string.
781
+ */
782
+ readlink(): Promise<string | undefined>;
783
+ readlink(opt: {
784
+ withFileTypes: false;
785
+ }): Promise<string | undefined>;
786
+ readlink(opt: {
787
+ withFileTypes: true;
788
+ }): Promise<PathBase | undefined>;
789
+ readlink(opt: {
790
+ withFileTypes: boolean;
791
+ }): Promise<PathBase | string | undefined>;
792
+ readlink(entry: string | PathBase, opt?: {
793
+ withFileTypes: false;
794
+ }): Promise<string | undefined>;
795
+ readlink(entry: string | PathBase, opt: {
796
+ withFileTypes: true;
797
+ }): Promise<PathBase | undefined>;
798
+ readlink(entry: string | PathBase, opt: {
799
+ withFileTypes: boolean;
800
+ }): Promise<string | PathBase | undefined>;
801
+ /**
802
+ * synchronous {@link PathScurryBase.readlink}
803
+ */
804
+ readlinkSync(): string | undefined;
805
+ readlinkSync(opt: {
806
+ withFileTypes: false;
807
+ }): string | undefined;
808
+ readlinkSync(opt: {
809
+ withFileTypes: true;
810
+ }): PathBase | undefined;
811
+ readlinkSync(opt: {
812
+ withFileTypes: boolean;
813
+ }): PathBase | string | undefined;
814
+ readlinkSync(entry: string | PathBase, opt?: {
815
+ withFileTypes: false;
816
+ }): string | undefined;
817
+ readlinkSync(entry: string | PathBase, opt: {
818
+ withFileTypes: true;
819
+ }): PathBase | undefined;
820
+ readlinkSync(entry: string | PathBase, opt: {
821
+ withFileTypes: boolean;
822
+ }): string | PathBase | undefined;
823
+ /**
824
+ * Return the Path object or string path corresponding to path as resolved
825
+ * by realpath(3).
826
+ *
827
+ * If the realpath call fails for any reason, `undefined` is returned.
828
+ *
829
+ * Result is cached, and thus may be outdated if the filesystem is mutated.
830
+ *
831
+ * `{withFileTypes}` option defaults to `false`.
832
+ *
833
+ * On success, returns a Path object if `withFileTypes` option is true,
834
+ * otherwise a string.
835
+ */
836
+ realpath(): Promise<string | undefined>;
837
+ realpath(opt: {
838
+ withFileTypes: false;
839
+ }): Promise<string | undefined>;
840
+ realpath(opt: {
841
+ withFileTypes: true;
842
+ }): Promise<PathBase | undefined>;
843
+ realpath(opt: {
844
+ withFileTypes: boolean;
845
+ }): Promise<PathBase | string | undefined>;
846
+ realpath(entry: string | PathBase, opt?: {
847
+ withFileTypes: false;
848
+ }): Promise<string | undefined>;
849
+ realpath(entry: string | PathBase, opt: {
850
+ withFileTypes: true;
851
+ }): Promise<PathBase | undefined>;
852
+ realpath(entry: string | PathBase, opt: {
853
+ withFileTypes: boolean;
854
+ }): Promise<string | PathBase | undefined>;
855
+ realpathSync(): string | undefined;
856
+ realpathSync(opt: {
857
+ withFileTypes: false;
858
+ }): string | undefined;
859
+ realpathSync(opt: {
860
+ withFileTypes: true;
861
+ }): PathBase | undefined;
862
+ realpathSync(opt: {
863
+ withFileTypes: boolean;
864
+ }): PathBase | string | undefined;
865
+ realpathSync(entry: string | PathBase, opt?: {
866
+ withFileTypes: false;
867
+ }): string | undefined;
868
+ realpathSync(entry: string | PathBase, opt: {
869
+ withFileTypes: true;
870
+ }): PathBase | undefined;
871
+ realpathSync(entry: string | PathBase, opt: {
872
+ withFileTypes: boolean;
873
+ }): string | PathBase | undefined;
874
+ /**
875
+ * Asynchronously walk the directory tree, returning an array of
876
+ * all path strings or Path objects found.
877
+ *
878
+ * Note that this will be extremely memory-hungry on large filesystems.
879
+ * In such cases, it may be better to use the stream or async iterator
880
+ * walk implementation.
881
+ */
882
+ walk(): Promise<PathBase[]>;
883
+ walk(opts: WalkOptionsWithFileTypesTrue | WalkOptionsWithFileTypesUnset): Promise<PathBase[]>;
884
+ walk(opts: WalkOptionsWithFileTypesFalse): Promise<string[]>;
885
+ walk(opts: WalkOptions): Promise<string[] | PathBase[]>;
886
+ walk(entry: string | PathBase): Promise<PathBase[]>;
887
+ walk(entry: string | PathBase, opts: WalkOptionsWithFileTypesTrue | WalkOptionsWithFileTypesUnset): Promise<PathBase[]>;
888
+ walk(entry: string | PathBase, opts: WalkOptionsWithFileTypesFalse): Promise<string[]>;
889
+ walk(entry: string | PathBase, opts: WalkOptions): Promise<PathBase[] | string[]>;
890
+ /**
891
+ * Synchronously walk the directory tree, returning an array of
892
+ * all path strings or Path objects found.
893
+ *
894
+ * Note that this will be extremely memory-hungry on large filesystems.
895
+ * In such cases, it may be better to use the stream or async iterator
896
+ * walk implementation.
897
+ */
898
+ walkSync(): PathBase[];
899
+ walkSync(opts: WalkOptionsWithFileTypesTrue | WalkOptionsWithFileTypesUnset): PathBase[];
900
+ walkSync(opts: WalkOptionsWithFileTypesFalse): string[];
901
+ walkSync(opts: WalkOptions): string[] | PathBase[];
902
+ walkSync(entry: string | PathBase): PathBase[];
903
+ walkSync(entry: string | PathBase, opts: WalkOptionsWithFileTypesUnset | WalkOptionsWithFileTypesTrue): PathBase[];
904
+ walkSync(entry: string | PathBase, opts: WalkOptionsWithFileTypesFalse): string[];
905
+ walkSync(entry: string | PathBase, opts: WalkOptions): PathBase[] | string[];
906
+ /**
907
+ * Support for `for await`
908
+ *
909
+ * Alias for {@link PathScurryBase.iterate}
910
+ *
911
+ * Note: As of Node 19, this is very slow, compared to other methods of
912
+ * walking. Consider using {@link PathScurryBase.stream} if memory overhead
913
+ * and backpressure are concerns, or {@link PathScurryBase.walk} if not.
914
+ */
915
+ [Symbol.asyncIterator](): AsyncGenerator<PathBase, void, void>;
916
+ /**
917
+ * Async generator form of {@link PathScurryBase.walk}
918
+ *
919
+ * Note: As of Node 19, this is very slow, compared to other methods of
920
+ * walking, especially if most/all of the directory tree has been previously
921
+ * walked. Consider using {@link PathScurryBase.stream} if memory overhead
922
+ * and backpressure are concerns, or {@link PathScurryBase.walk} if not.
923
+ */
924
+ iterate(): AsyncGenerator<PathBase, void, void>;
925
+ iterate(opts: WalkOptionsWithFileTypesTrue | WalkOptionsWithFileTypesUnset): AsyncGenerator<PathBase, void, void>;
926
+ iterate(opts: WalkOptionsWithFileTypesFalse): AsyncGenerator<string, void, void>;
927
+ iterate(opts: WalkOptions): AsyncGenerator<string | PathBase, void, void>;
928
+ iterate(entry: string | PathBase): AsyncGenerator<PathBase, void, void>;
929
+ iterate(entry: string | PathBase, opts: WalkOptionsWithFileTypesTrue | WalkOptionsWithFileTypesUnset): AsyncGenerator<PathBase, void, void>;
930
+ iterate(entry: string | PathBase, opts: WalkOptionsWithFileTypesFalse): AsyncGenerator<string, void, void>;
931
+ iterate(entry: string | PathBase, opts: WalkOptions): AsyncGenerator<PathBase | string, void, void>;
932
+ /**
933
+ * Iterating over a PathScurry performs a synchronous walk.
934
+ *
935
+ * Alias for {@link PathScurryBase.iterateSync}
936
+ */
937
+ [Symbol.iterator](): Generator<PathBase, void, void>;
938
+ iterateSync(): Generator<PathBase, void, void>;
939
+ iterateSync(opts: WalkOptionsWithFileTypesTrue | WalkOptionsWithFileTypesUnset): Generator<PathBase, void, void>;
940
+ iterateSync(opts: WalkOptionsWithFileTypesFalse): Generator<string, void, void>;
941
+ iterateSync(opts: WalkOptions): Generator<string | PathBase, void, void>;
942
+ iterateSync(entry: string | PathBase): Generator<PathBase, void, void>;
943
+ iterateSync(entry: string | PathBase, opts: WalkOptionsWithFileTypesTrue | WalkOptionsWithFileTypesUnset): Generator<PathBase, void, void>;
944
+ iterateSync(entry: string | PathBase, opts: WalkOptionsWithFileTypesFalse): Generator<string, void, void>;
945
+ iterateSync(entry: string | PathBase, opts: WalkOptions): Generator<PathBase | string, void, void>;
946
+ /**
947
+ * Stream form of {@link PathScurryBase.walk}
948
+ *
949
+ * Returns a Minipass stream that emits {@link PathBase} objects by default,
950
+ * or strings if `{ withFileTypes: false }` is set in the options.
951
+ */
952
+ stream(): Minipass<PathBase>;
953
+ stream(opts: WalkOptionsWithFileTypesTrue | WalkOptionsWithFileTypesUnset): Minipass<PathBase>;
954
+ stream(opts: WalkOptionsWithFileTypesFalse): Minipass<string>;
955
+ stream(opts: WalkOptions): Minipass<string | PathBase>;
956
+ stream(entry: string | PathBase): Minipass<PathBase>;
957
+ stream(entry: string | PathBase, opts: WalkOptionsWithFileTypesUnset | WalkOptionsWithFileTypesTrue): Minipass<PathBase>;
958
+ stream(entry: string | PathBase, opts: WalkOptionsWithFileTypesFalse): Minipass<string>;
959
+ stream(entry: string | PathBase, opts: WalkOptions): Minipass<string> | Minipass<PathBase>;
960
+ /**
961
+ * Synchronous form of {@link PathScurryBase.stream}
962
+ *
963
+ * Returns a Minipass stream that emits {@link PathBase} objects by default,
964
+ * or strings if `{ withFileTypes: false }` is set in the options.
965
+ *
966
+ * Will complete the walk in a single tick if the stream is consumed fully.
967
+ * Otherwise, will pause as needed for stream backpressure.
968
+ */
969
+ streamSync(): Minipass<PathBase>;
970
+ streamSync(opts: WalkOptionsWithFileTypesTrue | WalkOptionsWithFileTypesUnset): Minipass<PathBase>;
971
+ streamSync(opts: WalkOptionsWithFileTypesFalse): Minipass<string>;
972
+ streamSync(opts: WalkOptions): Minipass<string | PathBase>;
973
+ streamSync(entry: string | PathBase): Minipass<PathBase>;
974
+ streamSync(entry: string | PathBase, opts: WalkOptionsWithFileTypesUnset | WalkOptionsWithFileTypesTrue): Minipass<PathBase>;
975
+ streamSync(entry: string | PathBase, opts: WalkOptionsWithFileTypesFalse): Minipass<string>;
976
+ streamSync(entry: string | PathBase, opts: WalkOptions): Minipass<string> | Minipass<PathBase>;
977
+ chdir(path?: string | Path): void;
978
+ }
979
+ /**
980
+ * Options provided to all walk methods.
981
+ */
982
+ export interface WalkOptions {
983
+ /**
984
+ * Return results as {@link PathBase} objects rather than strings.
985
+ * When set to false, results are fully resolved paths, as returned by
986
+ * {@link PathBase.fullpath}.
987
+ * @default true
988
+ */
989
+ withFileTypes?: boolean;
990
+ /**
991
+ * Attempt to read directory entries from symbolic links. Otherwise, only
992
+ * actual directories are traversed. Regardless of this setting, a given
993
+ * target path will only ever be walked once, meaning that a symbolic link
994
+ * to a previously traversed directory will never be followed.
995
+ *
996
+ * Setting this imposes a slight performance penalty, because `readlink`
997
+ * must be called on all symbolic links encountered, in order to avoid
998
+ * infinite cycles.
999
+ * @default false
1000
+ */
1001
+ follow?: boolean;
1002
+ /**
1003
+ * Only return entries where the provided function returns true.
1004
+ *
1005
+ * This will not prevent directories from being traversed, even if they do
1006
+ * not pass the filter, though it will prevent directories themselves from
1007
+ * being included in the result set. See {@link walkFilter}
1008
+ *
1009
+ * Asynchronous functions are not supported here.
1010
+ *
1011
+ * By default, if no filter is provided, all entries and traversed
1012
+ * directories are included.
1013
+ */
1014
+ filter?: (entry: PathBase) => boolean;
1015
+ /**
1016
+ * Only traverse directories (and in the case of {@link follow} being set to
1017
+ * true, symbolic links to directories) if the provided function returns
1018
+ * true.
1019
+ *
1020
+ * This will not prevent directories from being included in the result set,
1021
+ * even if they do not pass the supplied filter function. See {@link filter}
1022
+ * to do that.
1023
+ *
1024
+ * Asynchronous functions are not supported here.
1025
+ */
1026
+ walkFilter?: (entry: PathBase) => boolean;
1027
+ }
1028
+ export type WalkOptionsWithFileTypesUnset = WalkOptions & {
1029
+ withFileTypes?: undefined;
1030
+ };
1031
+ export type WalkOptionsWithFileTypesTrue = WalkOptions & {
1032
+ withFileTypes: true;
1033
+ };
1034
+ export type WalkOptionsWithFileTypesFalse = WalkOptions & {
1035
+ withFileTypes: false;
1036
+ };
1037
+ /**
1038
+ * Windows implementation of {@link PathScurryBase}
1039
+ *
1040
+ * Defaults to case insensitve, uses `'\\'` to generate path strings. Uses
1041
+ * {@link PathWin32} for Path objects.
1042
+ */
1043
+ export declare class PathScurryWin32 extends PathScurryBase {
1044
+ /**
1045
+ * separator for generating path strings
1046
+ */
1047
+ sep: '\\';
1048
+ constructor(cwd?: URL | string, opts?: PathScurryOpts);
1049
+ /**
1050
+ * @internal
1051
+ */
1052
+ parseRootPath(dir: string): string;
1053
+ /**
1054
+ * @internal
1055
+ */
1056
+ newRoot(fs: FSValue): PathWin32;
1057
+ /**
1058
+ * Return true if the provided path string is an absolute path
1059
+ */
1060
+ isAbsolute(p: string): boolean;
1061
+ }
1062
+ /**
1063
+ * {@link PathScurryBase} implementation for all posix systems other than Darwin.
1064
+ *
1065
+ * Defaults to case-sensitive matching, uses `'/'` to generate path strings.
1066
+ *
1067
+ * Uses {@link PathPosix} for Path objects.
1068
+ */
1069
+ export declare class PathScurryPosix extends PathScurryBase {
1070
+ /**
1071
+ * separator for generating path strings
1072
+ */
1073
+ sep: '/';
1074
+ constructor(cwd?: URL | string, opts?: PathScurryOpts);
1075
+ /**
1076
+ * @internal
1077
+ */
1078
+ parseRootPath(_dir: string): string;
1079
+ /**
1080
+ * @internal
1081
+ */
1082
+ newRoot(fs: FSValue): PathPosix;
1083
+ /**
1084
+ * Return true if the provided path string is an absolute path
1085
+ */
1086
+ isAbsolute(p: string): boolean;
1087
+ }
1088
+ /**
1089
+ * {@link PathScurryBase} implementation for Darwin (macOS) systems.
1090
+ *
1091
+ * Defaults to case-insensitive matching, uses `'/'` for generating path
1092
+ * strings.
1093
+ *
1094
+ * Uses {@link PathPosix} for Path objects.
1095
+ */
1096
+ export declare class PathScurryDarwin extends PathScurryPosix {
1097
+ constructor(cwd?: URL | string, opts?: PathScurryOpts);
1098
+ }
1099
+ /**
1100
+ * Default {@link PathBase} implementation for the current platform.
1101
+ *
1102
+ * {@link PathWin32} on Windows systems, {@link PathPosix} on all others.
1103
+ */
1104
+ export declare const Path: typeof PathWin32 | typeof PathPosix;
1105
+ export type Path = PathBase | InstanceType<typeof Path>;
1106
+ /**
1107
+ * Default {@link PathScurryBase} implementation for the current platform.
1108
+ *
1109
+ * {@link PathScurryWin32} on Windows systems, {@link PathScurryDarwin} on
1110
+ * Darwin (macOS) systems, {@link PathScurryPosix} on all others.
1111
+ */
1112
+ export declare const PathScurry: typeof PathScurryWin32 | typeof PathScurryDarwin | typeof PathScurryPosix;
1113
+ export type PathScurry = PathScurryBase | InstanceType<typeof PathScurry>;
1114
+ export {};
1115
+ //# sourceMappingURL=index.d.ts.map