@poveste/vendors 0.13.1 → 0.15.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 (225) hide show
  1. package/dist/client/b-floating-vue.js +1 -1
  2. package/dist/client/b-iconify.js +1429 -1416
  3. package/dist/client/b-pinia.js +1359 -1936
  4. package/dist/client/b-vue-router.js +787 -502
  5. package/dist/client/b-vue-use.js +497 -367
  6. package/dist/client/b-vue.js +1 -1
  7. package/dist/client/devtools-api.js +6568 -0
  8. package/dist/client/index.js +178 -162
  9. package/dist/client/node_modules/@iconify/vue/dist/iconify.d.ts +17 -72
  10. package/dist/client/node_modules/@iconify/vue/dist/offline.d.ts +7 -12
  11. package/dist/client/node_modules/@iconify/vue/offline/package.json +2 -2
  12. package/dist/client/node_modules/@iconify/vue/package.json +13 -16
  13. package/dist/client/node_modules/@jridgewell/gen-mapping/dist/types/gen-mapping.d.ts +88 -0
  14. package/dist/client/node_modules/@jridgewell/gen-mapping/dist/types/set-array.d.ts +32 -0
  15. package/dist/client/node_modules/@jridgewell/gen-mapping/dist/types/sourcemap-segment.d.ts +12 -0
  16. package/dist/client/node_modules/@jridgewell/gen-mapping/dist/types/types.d.ts +43 -0
  17. package/dist/client/node_modules/@jridgewell/gen-mapping/package.json +67 -0
  18. package/dist/client/node_modules/@jridgewell/gen-mapping/types/gen-mapping.d.mts +89 -0
  19. package/dist/client/node_modules/@jridgewell/gen-mapping/types/set-array.d.mts +33 -0
  20. package/dist/client/node_modules/@jridgewell/gen-mapping/types/sourcemap-segment.d.mts +13 -0
  21. package/dist/client/node_modules/@jridgewell/gen-mapping/types/types.d.mts +44 -0
  22. package/dist/client/node_modules/@jridgewell/remapping/package.json +71 -0
  23. package/dist/client/node_modules/@jridgewell/remapping/types/build-source-map-tree.d.mts +15 -0
  24. package/dist/client/node_modules/@jridgewell/remapping/types/remapping.d.mts +21 -0
  25. package/dist/client/node_modules/@jridgewell/remapping/types/source-map-tree.d.mts +46 -0
  26. package/dist/client/node_modules/@jridgewell/remapping/types/source-map.d.mts +19 -0
  27. package/dist/client/node_modules/@jridgewell/remapping/types/types.d.mts +16 -0
  28. package/dist/client/node_modules/@jridgewell/resolve-uri/dist/types/resolve-uri.d.ts +4 -0
  29. package/dist/client/node_modules/@jridgewell/resolve-uri/package.json +69 -0
  30. package/dist/client/node_modules/@jridgewell/trace-mapping/package.json +67 -0
  31. package/dist/client/node_modules/@jridgewell/trace-mapping/types/binary-search.d.mts +33 -0
  32. package/dist/client/node_modules/@jridgewell/trace-mapping/types/by-source.d.mts +4 -0
  33. package/dist/client/node_modules/@jridgewell/trace-mapping/types/flatten-map.d.mts +9 -0
  34. package/dist/client/node_modules/@jridgewell/trace-mapping/types/resolve.d.mts +4 -0
  35. package/dist/client/node_modules/@jridgewell/trace-mapping/types/sort.d.mts +4 -0
  36. package/dist/client/node_modules/@jridgewell/trace-mapping/types/sourcemap-segment.d.mts +17 -0
  37. package/dist/client/node_modules/@jridgewell/trace-mapping/types/strip-filename.d.mts +5 -0
  38. package/dist/client/node_modules/@jridgewell/trace-mapping/types/trace-mapping.d.mts +80 -0
  39. package/dist/client/node_modules/@jridgewell/trace-mapping/types/types.d.mts +107 -0
  40. package/dist/client/node_modules/@vue/devtools-api/dist/index-node.d.ts +11 -0
  41. package/dist/client/node_modules/@vue/devtools-api/dist/index.d.ts +2 -0
  42. package/dist/client/node_modules/@vue/devtools-api/package.json +25 -24
  43. package/dist/client/node_modules/@vue/devtools-kit/dist/index.d.ts +1170 -0
  44. package/dist/client/node_modules/@vue/devtools-kit/global.d.ts +20 -0
  45. package/dist/client/node_modules/@vue/devtools-kit/package.json +44 -0
  46. package/dist/client/node_modules/@vue/devtools-kit/types.d.ts +2 -0
  47. package/dist/client/node_modules/@vue/devtools-shared/dist/index.d.ts +40 -0
  48. package/dist/client/node_modules/@vue/devtools-shared/package.json +33 -0
  49. package/dist/client/node_modules/@vue-macros/common/dist/index.d.ts +124 -0
  50. package/dist/client/node_modules/@vue-macros/common/package.json +63 -0
  51. package/dist/client/node_modules/@vueuse/core/dist/index.d.ts +223 -111
  52. package/dist/client/node_modules/@vueuse/core/package.json +10 -3
  53. package/dist/client/node_modules/@vueuse/metadata/package.json +4 -1
  54. package/dist/client/node_modules/@vueuse/shared/dist/index.d.ts +2 -2
  55. package/dist/client/node_modules/@vueuse/shared/package.json +4 -1
  56. package/dist/client/node_modules/acorn/dist/acorn.d.mts +897 -0
  57. package/dist/client/node_modules/acorn/dist/acorn.d.ts +897 -0
  58. package/dist/client/node_modules/acorn/package.json +50 -0
  59. package/dist/client/node_modules/ast-kit/dist/index.d.ts +380 -0
  60. package/dist/client/node_modules/ast-kit/package.json +63 -0
  61. package/dist/client/node_modules/ast-walker-scope/dist/index.d.mts +51 -0
  62. package/dist/client/node_modules/ast-walker-scope/package.json +60 -0
  63. package/dist/client/node_modules/birpc/dist/index.d.mts +215 -0
  64. package/dist/client/node_modules/birpc/dist/index.d.ts +215 -0
  65. package/dist/client/node_modules/birpc/package.json +57 -0
  66. package/dist/client/node_modules/chokidar/handler.d.ts +90 -0
  67. package/dist/client/node_modules/chokidar/index.d.ts +217 -0
  68. package/dist/client/node_modules/chokidar/package.json +63 -0
  69. package/dist/client/node_modules/confbox/dist/_chunks/_format.d.mts +25 -0
  70. package/dist/client/node_modules/confbox/dist/index.d.mts +34 -0
  71. package/dist/client/node_modules/confbox/dist/ini.d.mts +62 -0
  72. package/dist/client/node_modules/confbox/dist/json5.d.mts +59 -0
  73. package/dist/client/node_modules/confbox/dist/jsonc.d.mts +41 -0
  74. package/dist/client/node_modules/confbox/dist/toml.d.mts +23 -0
  75. package/dist/client/node_modules/confbox/dist/yaml.d.mts +96 -0
  76. package/dist/client/node_modules/confbox/package.json +67 -0
  77. package/dist/client/node_modules/exsolve/dist/index.d.mts +66 -0
  78. package/dist/client/node_modules/exsolve/package.json +42 -0
  79. package/dist/client/node_modules/fdir/dist/index.d.mts +155 -0
  80. package/dist/client/node_modules/fdir/package.json +103 -0
  81. package/dist/client/node_modules/hookable/dist/index.d.ts +103 -0
  82. package/dist/client/node_modules/hookable/package.json +49 -0
  83. package/dist/client/node_modules/local-pkg/dist/index.d.mts +42 -0
  84. package/dist/client/node_modules/local-pkg/dist/index.d.ts +42 -0
  85. package/dist/client/node_modules/local-pkg/package.json +65 -0
  86. package/dist/client/node_modules/magic-string-ast/dist/index.d.ts +67 -0
  87. package/dist/client/node_modules/magic-string-ast/package.json +64 -0
  88. package/dist/client/node_modules/mlly/dist/index.d.mts +564 -0
  89. package/dist/client/node_modules/mlly/dist/index.d.ts +564 -0
  90. package/dist/client/node_modules/mlly/node_modules/confbox/dist/index.d.mts +32 -0
  91. package/dist/client/node_modules/mlly/node_modules/confbox/dist/index.d.ts +32 -0
  92. package/dist/client/node_modules/mlly/node_modules/confbox/dist/json5.d.mts +58 -0
  93. package/dist/client/node_modules/mlly/node_modules/confbox/dist/json5.d.ts +58 -0
  94. package/dist/client/node_modules/mlly/node_modules/confbox/dist/jsonc.d.mts +41 -0
  95. package/dist/client/node_modules/mlly/node_modules/confbox/dist/jsonc.d.ts +41 -0
  96. package/dist/client/node_modules/mlly/node_modules/confbox/dist/shared/confbox.9745c98f.d.mts +24 -0
  97. package/dist/client/node_modules/mlly/node_modules/confbox/dist/shared/confbox.9745c98f.d.ts +24 -0
  98. package/dist/client/node_modules/mlly/node_modules/confbox/dist/toml.d.mts +22 -0
  99. package/dist/client/node_modules/mlly/node_modules/confbox/dist/toml.d.ts +22 -0
  100. package/dist/client/node_modules/mlly/node_modules/confbox/dist/yaml.d.mts +95 -0
  101. package/dist/client/node_modules/mlly/node_modules/confbox/dist/yaml.d.ts +95 -0
  102. package/dist/client/node_modules/mlly/node_modules/confbox/json5.d.ts +2 -0
  103. package/dist/client/node_modules/mlly/node_modules/confbox/jsonc.d.ts +2 -0
  104. package/dist/client/node_modules/mlly/node_modules/confbox/package.json +86 -0
  105. package/dist/client/node_modules/mlly/node_modules/confbox/toml.d.ts +2 -0
  106. package/dist/client/node_modules/mlly/node_modules/confbox/yaml.d.ts +2 -0
  107. package/dist/client/node_modules/mlly/node_modules/pkg-types/dist/index.d.mts +411 -0
  108. package/dist/client/node_modules/mlly/node_modules/pkg-types/dist/index.d.ts +411 -0
  109. package/dist/client/node_modules/mlly/node_modules/pkg-types/package.json +47 -0
  110. package/dist/client/node_modules/mlly/package.json +55 -0
  111. package/dist/client/node_modules/muggle-string/out/base.d.ts +6 -0
  112. package/dist/client/node_modules/muggle-string/out/basic.d.ts +6 -0
  113. package/dist/client/node_modules/muggle-string/out/binarySearch.d.ts +1 -0
  114. package/dist/client/node_modules/muggle-string/out/common.d.ts +9 -0
  115. package/dist/client/node_modules/muggle-string/out/getLength.d.ts +2 -0
  116. package/dist/client/node_modules/muggle-string/out/index.d.ts +10 -0
  117. package/dist/client/node_modules/muggle-string/out/map.d.ts +3 -0
  118. package/dist/client/node_modules/muggle-string/out/overwriteSource.d.ts +3 -0
  119. package/dist/client/node_modules/muggle-string/out/replace.d.ts +3 -0
  120. package/dist/client/node_modules/muggle-string/out/segment.d.ts +6 -0
  121. package/dist/client/node_modules/muggle-string/out/sourceBased.d.ts +3 -0
  122. package/dist/client/node_modules/muggle-string/out/toString.d.ts +2 -0
  123. package/dist/client/node_modules/muggle-string/out/track.d.ts +6 -0
  124. package/dist/client/node_modules/muggle-string/out/types.d.ts +16 -0
  125. package/dist/client/node_modules/muggle-string/package.json +22 -0
  126. package/dist/client/node_modules/nanoid/package.json +1 -1
  127. package/dist/client/node_modules/nostics/dist/diagnostic-wduO7saY.d.mts +295 -0
  128. package/dist/client/node_modules/nostics/dist/formatters/ansi.d.mts +15 -0
  129. package/dist/client/node_modules/nostics/dist/formatters/json.d.mts +7 -0
  130. package/dist/client/node_modules/nostics/dist/index.d.mts +51 -0
  131. package/dist/client/node_modules/nostics/dist/reporters/dev.d.mts +13 -0
  132. package/dist/client/node_modules/nostics/dist/reporters/fetch.d.mts +11 -0
  133. package/dist/client/node_modules/nostics/dist/reporters/node.d.mts +43 -0
  134. package/dist/client/node_modules/nostics/package.json +125 -0
  135. package/dist/client/node_modules/pathe/dist/index.d.mts +47 -0
  136. package/dist/client/node_modules/pathe/dist/index.d.ts +47 -0
  137. package/dist/client/node_modules/pathe/dist/utils.d.mts +32 -0
  138. package/dist/client/node_modules/pathe/dist/utils.d.ts +32 -0
  139. package/dist/client/node_modules/pathe/package.json +61 -0
  140. package/dist/client/node_modules/pathe/utils.d.ts +1 -0
  141. package/dist/client/node_modules/perfect-debounce/dist/index.d.mts +49 -0
  142. package/dist/client/node_modules/perfect-debounce/package.json +41 -0
  143. package/dist/client/node_modules/picomatch/package.json +83 -0
  144. package/dist/client/node_modules/pinia/dist/pinia.d.ts +937 -1056
  145. package/dist/client/node_modules/pinia/package.json +53 -67
  146. package/dist/client/node_modules/pkg-types/dist/index.d.mts +695 -0
  147. package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/_chunks/_format.d.mts +22 -0
  148. package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/_chunks/libs/js-yaml.d.mts +33 -0
  149. package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/index.d.mts +7 -0
  150. package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/ini.d.mts +59 -0
  151. package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/json.d.mts +25 -0
  152. package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/json5.d.mts +55 -0
  153. package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/jsonc.d.mts +29 -0
  154. package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/toml.d.mts +20 -0
  155. package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/yaml.d.mts +101 -0
  156. package/dist/client/node_modules/pkg-types/node_modules/confbox/package.json +68 -0
  157. package/dist/client/node_modules/pkg-types/package.json +47 -0
  158. package/dist/client/node_modules/quansync/dist/index.d.mts +22 -0
  159. package/dist/client/node_modules/quansync/dist/index.d.ts +22 -0
  160. package/dist/client/node_modules/quansync/dist/macro.d.mts +18 -0
  161. package/dist/client/node_modules/quansync/dist/macro.d.ts +18 -0
  162. package/dist/client/node_modules/quansync/dist/types.d.mts +27 -0
  163. package/dist/client/node_modules/quansync/dist/types.d.ts +27 -0
  164. package/dist/client/node_modules/quansync/package.json +95 -0
  165. package/dist/client/node_modules/readdirp/index.d.ts +117 -0
  166. package/dist/client/node_modules/readdirp/package.json +62 -0
  167. package/dist/client/node_modules/scule/dist/index.d.mts +57 -0
  168. package/dist/client/node_modules/scule/dist/index.d.ts +57 -0
  169. package/dist/client/node_modules/scule/package.json +43 -0
  170. package/dist/client/node_modules/tinyglobby/dist/index.d.mts +148 -0
  171. package/dist/client/node_modules/tinyglobby/package.json +70 -0
  172. package/dist/client/node_modules/ufo/dist/index.d.mts +714 -0
  173. package/dist/client/node_modules/ufo/dist/index.d.ts +714 -0
  174. package/dist/client/node_modules/ufo/package.json +48 -0
  175. package/dist/client/node_modules/unplugin/dist/index.d.mts +241 -0
  176. package/dist/client/node_modules/unplugin/dist/rspack/loaders/load.d.mts +4 -0
  177. package/dist/client/node_modules/unplugin/dist/rspack/loaders/transform.d.mts +4 -0
  178. package/dist/client/node_modules/unplugin/dist/webpack/loaders/load.d.mts +4 -0
  179. package/dist/client/node_modules/unplugin/dist/webpack/loaders/transform.d.mts +4 -0
  180. package/dist/client/node_modules/unplugin/package.json +146 -0
  181. package/dist/client/node_modules/unplugin-utils/dist/index.d.ts +31 -0
  182. package/dist/client/node_modules/unplugin-utils/package.json +61 -0
  183. package/dist/client/node_modules/vue-router/dist/experimental/index.d.ts +7 -0
  184. package/dist/client/node_modules/vue-router/dist/experimental/pinia-colada.d.ts +151 -0
  185. package/dist/client/node_modules/vue-router/dist/{router-CWoNjPRp.d.mts → index-D7ja2BKs.d.ts} +2480 -1160
  186. package/dist/client/node_modules/vue-router/dist/options-CwYZKRl4.d.mts +2923 -0
  187. package/dist/client/node_modules/vue-router/dist/unplugin/esbuild.d.mts +10 -0
  188. package/dist/client/node_modules/vue-router/dist/unplugin/index.d.mts +62 -0
  189. package/dist/client/node_modules/vue-router/dist/unplugin/options.d.mts +7 -0
  190. package/dist/client/node_modules/vue-router/dist/unplugin/rolldown.d.mts +10 -0
  191. package/dist/client/node_modules/vue-router/dist/unplugin/rollup.d.mts +10 -0
  192. package/dist/client/node_modules/vue-router/dist/unplugin/types.d.mts +7 -0
  193. package/dist/client/node_modules/vue-router/dist/unplugin/vite.d.mts +10 -0
  194. package/dist/client/node_modules/vue-router/dist/unplugin/webpack.d.mts +10 -0
  195. package/dist/client/node_modules/vue-router/dist/vue-router.d.ts +7 -0
  196. package/dist/client/node_modules/vue-router/package.json +153 -95
  197. package/dist/client/node_modules/vue-router/vue-router-auto-resolver.d.mts +22 -17
  198. package/dist/client/node_modules/vue-router/vue-router-auto-routes.d.mts +53 -0
  199. package/dist/client/node_modules/vue-router/vue-router-auto.d.ts +2 -1
  200. package/dist/client/node_modules/webpack-virtual-modules/lib/index.d.ts +15 -0
  201. package/dist/client/node_modules/webpack-virtual-modules/lib/virtual-stats.d.ts +11 -0
  202. package/dist/client/node_modules/webpack-virtual-modules/package.json +82 -0
  203. package/dist/client/vue.runtime.esm-bundler.js +1 -176
  204. package/package.json +8 -7
  205. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/api.d.ts +0 -108
  206. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/app.d.ts +0 -1
  207. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/component.d.ts +0 -78
  208. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/context.d.ts +0 -5
  209. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/hooks.d.ts +0 -180
  210. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/index.d.ts +0 -6
  211. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/util.d.ts +0 -4
  212. package/dist/client/node_modules/@vue/devtools-api/lib/esm/const.d.ts +0 -2
  213. package/dist/client/node_modules/@vue/devtools-api/lib/esm/env.d.ts +0 -15
  214. package/dist/client/node_modules/@vue/devtools-api/lib/esm/index.d.ts +0 -18
  215. package/dist/client/node_modules/@vue/devtools-api/lib/esm/plugin.d.ts +0 -47
  216. package/dist/client/node_modules/@vue/devtools-api/lib/esm/proxy.d.ts +0 -20
  217. package/dist/client/node_modules/@vue/devtools-api/lib/esm/time.d.ts +0 -2
  218. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/index.d.ts +0 -22
  219. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v2/index.d.ts +0 -33
  220. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v2.7/index.d.ts +0 -38
  221. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v3/index.d.ts +0 -22
  222. package/dist/client/node_modules/pinia/node_modules/vue-demi/package.json +0 -47
  223. package/dist/client/node_modules/vue-router/dist/experimental/index.d.mts +0 -38
  224. package/dist/client/node_modules/vue-router/dist/vue-router.d.mts +0 -361
  225. package/dist/client/node_modules/vue-router/vue-router-auto-routes.d.ts +0 -4
@@ -0,0 +1,95 @@
1
+ {
2
+ "name": "quansync",
3
+ "type": "module",
4
+ "version": "0.2.11",
5
+ "description": "Create sync/async APIs with usable logic",
6
+ "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
+ "contributors": [
8
+ {
9
+ "name": "三咲智子 Kevin Deng",
10
+ "email": "sxzz@sxzz.moe"
11
+ }
12
+ ],
13
+ "license": "MIT",
14
+ "funding": [
15
+ {
16
+ "type": "individual",
17
+ "url": "https://github.com/sponsors/antfu"
18
+ },
19
+ {
20
+ "type": "individual",
21
+ "url": "https://github.com/sponsors/sxzz"
22
+ }
23
+ ],
24
+ "homepage": "https://github.com/quansync-dev/quansync#readme",
25
+ "repository": {
26
+ "type": "git",
27
+ "url": "git+https://github.com/quansync-dev/quansync.git"
28
+ },
29
+ "bugs": "https://github.com/quansync-dev/quansync/issues",
30
+ "keywords": [
31
+ "async",
32
+ "sync",
33
+ "generator"
34
+ ],
35
+ "sideEffects": false,
36
+ "exports": {
37
+ ".": {
38
+ "import": "./dist/index.mjs",
39
+ "require": "./dist/index.cjs"
40
+ },
41
+ "./macro": {
42
+ "import": "./dist/macro.mjs",
43
+ "require": "./dist/macro.cjs"
44
+ },
45
+ "./types": {
46
+ "import": "./dist/types.mjs",
47
+ "require": "./dist/types.cjs"
48
+ }
49
+ },
50
+ "main": "./dist/index.mjs",
51
+ "module": "./dist/index.mjs",
52
+ "types": "./dist/index.d.mts",
53
+ "typesVersions": {
54
+ "*": {
55
+ "*": [
56
+ "./dist/*",
57
+ "./*"
58
+ ]
59
+ }
60
+ },
61
+ "files": [
62
+ "dist"
63
+ ],
64
+ "devDependencies": {
65
+ "@antfu/eslint-config": "^5.2.1",
66
+ "@types/node": "^24.3.0",
67
+ "bumpp": "^10.2.3",
68
+ "eslint": "^9.33.0",
69
+ "gensync": "1.0.0-beta.2",
70
+ "lint-staged": "^16.1.5",
71
+ "mitata": "^1.0.34",
72
+ "simple-git-hooks": "^2.13.1",
73
+ "tsx": "^4.20.4",
74
+ "typescript": "^5.9.2",
75
+ "unbuild": "^3.6.1",
76
+ "vite": "^7.1.2",
77
+ "vitest": "^3.2.4"
78
+ },
79
+ "simple-git-hooks": {
80
+ "pre-commit": "pnpm lint-staged"
81
+ },
82
+ "lint-staged": {
83
+ "*": "eslint --fix"
84
+ },
85
+ "scripts": {
86
+ "build": "unbuild",
87
+ "dev": "unbuild --stub",
88
+ "lint": "eslint .",
89
+ "release": "bumpp",
90
+ "start": "tsx src/index.ts",
91
+ "benchmark": "node scripts/benchmark.js",
92
+ "test": "vitest",
93
+ "typecheck": "tsc --noEmit"
94
+ }
95
+ }
@@ -0,0 +1,117 @@
1
+ /**
2
+ * Recursive version of readdir. Exposes a streaming API and promise API.
3
+ * Streaming API allows to use a small amount of RAM.
4
+ *
5
+ * @module
6
+ * @example
7
+ ```js
8
+ import readdirp from 'readdirp';
9
+ for await (const entry of readdirp('.')) {
10
+ const {path} = entry;
11
+ console.log(`${JSON.stringify({path})}`);
12
+ }
13
+ ```
14
+ */
15
+ /*! readdirp - MIT License (c) 2012-2019 Thorsten Lorenz, Paul Miller (https://paulmillr.com) */
16
+ import type { Dirent, Stats } from 'node:fs';
17
+ import { Readable } from 'node:stream';
18
+ /** Path in file system. */
19
+ export type Path = string;
20
+ /** Emitted entry. Contains relative & absolute path, basename, and either stats or dirent. */
21
+ export interface EntryInfo {
22
+ path: string;
23
+ fullPath: string;
24
+ stats?: Stats;
25
+ dirent?: Dirent;
26
+ basename: string;
27
+ }
28
+ /** Path or dir entries (files) */
29
+ export type PathOrDirent = Dirent | Path;
30
+ /** Filterer for files */
31
+ export type Tester = (entryInfo: EntryInfo) => boolean;
32
+ export type Predicate = string[] | string | Tester;
33
+ export declare const EntryTypes: {
34
+ readonly FILE_TYPE: "files";
35
+ readonly DIR_TYPE: "directories";
36
+ readonly FILE_DIR_TYPE: "files_directories";
37
+ readonly EVERYTHING_TYPE: "all";
38
+ };
39
+ export type EntryType = (typeof EntryTypes)[keyof typeof EntryTypes];
40
+ /**
41
+ * Options for readdirp.
42
+ * * type: files, directories, or both
43
+ * * lstat: whether to use symlink-friendly stat
44
+ * * depth: max depth
45
+ * * alwaysStat: whether to use stat (more resources) or dirent
46
+ * * highWaterMark: streaming param, specifies max amount of resources per entry
47
+ */
48
+ export type ReaddirpOptions = {
49
+ root: string;
50
+ fileFilter?: Predicate;
51
+ directoryFilter?: Predicate;
52
+ type?: EntryType;
53
+ lstat?: boolean;
54
+ depth?: number;
55
+ alwaysStat?: boolean;
56
+ highWaterMark?: number;
57
+ };
58
+ /** Directory entry. Contains path, depth count, and files. */
59
+ export interface DirEntry {
60
+ /** Undefined when the directory could not be read (a 'warn' was emitted). */
61
+ files: PathOrDirent[] | undefined;
62
+ depth: number;
63
+ path: Path;
64
+ }
65
+ /** Readable readdir stream, emitting new files as they're being listed. */
66
+ interface PendingDir {
67
+ path: Path;
68
+ depth: number;
69
+ pending?: Promise<DirEntry>;
70
+ }
71
+ export declare class ReaddirpStream extends Readable {
72
+ /**
73
+ * Directories discovered but not yet emitted from. Listings are read
74
+ * lazily (on pop, plus one prefetch) instead of eagerly on discovery:
75
+ * keeping whole listings for every queued dir balloons RAM on wide trees.
76
+ */
77
+ parents: PendingDir[];
78
+ reading: boolean;
79
+ parent?: DirEntry;
80
+ _stat: Function;
81
+ _maxDepth: number;
82
+ _wantsDir: boolean;
83
+ _wantsFile: boolean;
84
+ _wantsEverything: boolean;
85
+ _root: Path;
86
+ _isDirent: boolean;
87
+ _statsProp: 'dirent' | 'stats';
88
+ _rdOptions: {
89
+ encoding: 'utf8';
90
+ withFileTypes: boolean;
91
+ };
92
+ _fileFilter: Tester;
93
+ _directoryFilter: Tester;
94
+ _relStart: number;
95
+ constructor(options?: Partial<ReaddirpOptions>);
96
+ _read(batch: number): Promise<void>;
97
+ _exploreDir(path: Path, depth: number): Promise<DirEntry>;
98
+ _formatEntry(dirent: PathOrDirent, path: Path): EntryInfo | undefined | Promise<EntryInfo | undefined>;
99
+ _onError(err: Error): void;
100
+ _getEntryType(entry: EntryInfo): '' | 'file' | 'directory' | Promise<'' | 'file' | 'directory'>;
101
+ _getSymlinkEntryType(entry: EntryInfo): Promise<'' | 'file' | 'directory'>;
102
+ _includeAsFile(entry: EntryInfo): boolean | undefined;
103
+ }
104
+ /**
105
+ * Streaming version: Reads all files and directories in given root recursively.
106
+ * Consumes ~constant small amount of RAM.
107
+ * @param root Root directory
108
+ * @param options Options to specify root (start directory), filters and recursion depth
109
+ */
110
+ export declare function readdirp(root: Path, options?: Partial<ReaddirpOptions>): ReaddirpStream;
111
+ /**
112
+ * Promise version: Reads all files and directories in given root recursively.
113
+ * Compared to streaming version, will consume a lot of RAM e.g. when 1 million files are listed.
114
+ * @returns array of paths and their entry infos
115
+ */
116
+ export declare function readdirpPromise(root: Path, options?: Partial<ReaddirpOptions>): Promise<EntryInfo[]>;
117
+ export default readdirp;
@@ -0,0 +1,62 @@
1
+ {
2
+ "name": "readdirp",
3
+ "description": "Recursive version of fs.readdir with small RAM & CPU footprint",
4
+ "version": "5.1.1",
5
+ "homepage": "https://github.com/paulmillr/readdirp",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/paulmillr/readdirp.git"
9
+ },
10
+ "license": "MIT",
11
+ "bugs": {
12
+ "url": "https://github.com/paulmillr/readdirp/issues"
13
+ },
14
+ "author": "Thorsten Lorenz <thlorenz@gmx.de> (thlorenz.com)",
15
+ "contributors": [
16
+ "Thorsten Lorenz <thlorenz@gmx.de> (thlorenz.com)",
17
+ "Paul Miller (https://paulmillr.com)"
18
+ ],
19
+ "engines": {
20
+ "node": ">= 20.19.0"
21
+ },
22
+ "files": [
23
+ "index.js",
24
+ "index.d.ts"
25
+ ],
26
+ "type": "module",
27
+ "main": "./index.js",
28
+ "module": "./index.js",
29
+ "types": "./index.d.ts",
30
+ "exports": {
31
+ ".": "./index.js"
32
+ },
33
+ "sideEffects": false,
34
+ "keywords": [
35
+ "recursive",
36
+ "fs",
37
+ "stream",
38
+ "streams",
39
+ "readdir",
40
+ "filesystem",
41
+ "find",
42
+ "filter"
43
+ ],
44
+ "scripts": {
45
+ "build": "tsc",
46
+ "format": "prettier --write index.ts test/index.test.js",
47
+ "test": "node test/index.test.js"
48
+ },
49
+ "devDependencies": {
50
+ "@paulmillr/jsbt": "0.6.1",
51
+ "@types/node": "24.10.1",
52
+ "c8": "10.1.3",
53
+ "chai": "4.3.4",
54
+ "chai-subset": "1.6.0",
55
+ "prettier": "3.1.1",
56
+ "typescript": "5.9.2"
57
+ },
58
+ "funding": {
59
+ "type": "individual",
60
+ "url": "https://paulmillr.com/funding/"
61
+ }
62
+ }
@@ -0,0 +1,57 @@
1
+ type Splitter = "-" | "_" | "/" | ".";
2
+ type FirstOfString<S extends string> = S extends `${infer F}${string}` ? F : never;
3
+ type RemoveFirstOfString<S extends string> = S extends `${string}${infer R}` ? R : never;
4
+ type IsUpper<S extends string> = S extends Uppercase<S> ? true : false;
5
+ type IsLower<S extends string> = S extends Lowercase<S> ? true : false;
6
+ type SameLetterCase<X extends string, Y extends string> = IsUpper<X> extends IsUpper<Y> ? true : IsLower<X> extends IsLower<Y> ? true : false;
7
+ type CapitalizedWords<T extends readonly string[], Accumulator extends string = "", Normalize extends boolean | undefined = false> = T extends readonly [infer F extends string, ...infer R extends string[]] ? CapitalizedWords<R, `${Accumulator}${Capitalize<Normalize extends true ? Lowercase<F> : F>}`, Normalize> : Accumulator;
8
+ type JoinLowercaseWords<T extends readonly string[], Joiner extends string, Accumulator extends string = ""> = T extends readonly [infer F extends string, ...infer R extends string[]] ? Accumulator extends "" ? JoinLowercaseWords<R, Joiner, `${Accumulator}${Lowercase<F>}`> : JoinLowercaseWords<R, Joiner, `${Accumulator}${Joiner}${Lowercase<F>}`> : Accumulator;
9
+ type LastOfArray<T extends any[]> = T extends [...any, infer R] ? R : never;
10
+ type RemoveLastOfArray<T extends any[]> = T extends [...infer F, any] ? F : never;
11
+ type CaseOptions = {
12
+ normalize?: boolean;
13
+ };
14
+ type SplitByCase<T, Separator extends string = Splitter, Accumulator extends unknown[] = []> = string extends Separator ? string[] : T extends `${infer F}${infer R}` ? [LastOfArray<Accumulator>] extends [never] ? SplitByCase<R, Separator, [F]> : LastOfArray<Accumulator> extends string ? R extends "" ? SplitByCase<R, Separator, [
15
+ ...RemoveLastOfArray<Accumulator>,
16
+ `${LastOfArray<Accumulator>}${F}`
17
+ ]> : SameLetterCase<F, FirstOfString<R>> extends true ? F extends Separator ? FirstOfString<R> extends Separator ? SplitByCase<R, Separator, [...Accumulator, ""]> : IsUpper<FirstOfString<R>> extends true ? SplitByCase<RemoveFirstOfString<R>, Separator, [
18
+ ...Accumulator,
19
+ FirstOfString<R>
20
+ ]> : SplitByCase<R, Separator, [...Accumulator, ""]> : SplitByCase<R, Separator, [
21
+ ...RemoveLastOfArray<Accumulator>,
22
+ `${LastOfArray<Accumulator>}${F}`
23
+ ]> : IsLower<F> extends true ? SplitByCase<RemoveFirstOfString<R>, Separator, [
24
+ ...RemoveLastOfArray<Accumulator>,
25
+ `${LastOfArray<Accumulator>}${F}`,
26
+ FirstOfString<R>
27
+ ]> : SplitByCase<R, Separator, [...Accumulator, F]> : never : Accumulator extends [] ? T extends "" ? [] : string[] : Accumulator;
28
+ type JoinByCase<T, Joiner extends string> = string extends T ? string : string[] extends T ? string : T extends string ? SplitByCase<T> extends readonly string[] ? JoinLowercaseWords<SplitByCase<T>, Joiner> : never : T extends readonly string[] ? JoinLowercaseWords<T, Joiner> : never;
29
+ type PascalCase<T, Normalize extends boolean | undefined = false> = string extends T ? string : string[] extends T ? string : T extends string ? SplitByCase<T> extends readonly string[] ? CapitalizedWords<SplitByCase<T>, "", Normalize> : never : T extends readonly string[] ? CapitalizedWords<T, "", Normalize> : never;
30
+ type CamelCase<T, Normalize extends boolean | undefined = false> = string extends T ? string : string[] extends T ? string : Uncapitalize<PascalCase<T, Normalize>>;
31
+ type KebabCase<T extends string | readonly string[], Joiner extends string = "-"> = JoinByCase<T, Joiner>;
32
+ type SnakeCase<T extends string | readonly string[]> = JoinByCase<T, "_">;
33
+ type TrainCase<T, Normalize extends boolean | undefined = false, Joiner extends string = "-"> = string extends T ? string : string[] extends T ? string : T extends string ? SplitByCase<T> extends readonly string[] ? CapitalizedWords<SplitByCase<T>, Joiner> : never : T extends readonly string[] ? CapitalizedWords<T, Joiner, Normalize> : never;
34
+ type FlatCase<T extends string | readonly string[], Joiner extends string = ""> = JoinByCase<T, Joiner>;
35
+
36
+ declare function isUppercase(char?: string): boolean | undefined;
37
+ declare function splitByCase<T extends string>(str: T): SplitByCase<T>;
38
+ declare function splitByCase<T extends string, Separator extends readonly string[]>(str: T, separators: Separator): SplitByCase<T, Separator[number]>;
39
+ declare function upperFirst<S extends string>(str: S): Capitalize<S>;
40
+ declare function lowerFirst<S extends string>(str: S): Uncapitalize<S>;
41
+ declare function pascalCase(): "";
42
+ declare function pascalCase<T extends string | readonly string[], UserCaseOptions extends CaseOptions = CaseOptions>(str: T, opts?: CaseOptions): PascalCase<T, UserCaseOptions["normalize"]>;
43
+ declare function camelCase(): "";
44
+ declare function camelCase<T extends string | readonly string[], UserCaseOptions extends CaseOptions = CaseOptions>(str: T, opts?: UserCaseOptions): CamelCase<T, UserCaseOptions["normalize"]>;
45
+ declare function kebabCase(): "";
46
+ declare function kebabCase<T extends string | readonly string[]>(str: T): KebabCase<T>;
47
+ declare function kebabCase<T extends string | readonly string[], Joiner extends string>(str: T, joiner: Joiner): KebabCase<T, Joiner>;
48
+ declare function snakeCase(): "";
49
+ declare function snakeCase<T extends string | readonly string[]>(str: T): SnakeCase<T>;
50
+ declare function flatCase(): "";
51
+ declare function flatCase<T extends string | readonly string[]>(str: T): FlatCase<T>;
52
+ declare function trainCase(): "";
53
+ declare function trainCase<T extends string | readonly string[], UserCaseOptions extends CaseOptions = CaseOptions>(str: T, opts?: UserCaseOptions): TrainCase<T, UserCaseOptions["normalize"]>;
54
+ declare function titleCase(): "";
55
+ declare function titleCase<T extends string | readonly string[], UserCaseOptions extends CaseOptions = CaseOptions>(str: T, opts?: UserCaseOptions): TrainCase<T, UserCaseOptions["normalize"], " ">;
56
+
57
+ export { type CamelCase, type CaseOptions, type FlatCase, type JoinByCase, type KebabCase, type PascalCase, type SnakeCase, type SplitByCase, type TrainCase, camelCase, flatCase, isUppercase, kebabCase, lowerFirst, pascalCase, snakeCase, splitByCase, titleCase, trainCase, upperFirst };
@@ -0,0 +1,57 @@
1
+ type Splitter = "-" | "_" | "/" | ".";
2
+ type FirstOfString<S extends string> = S extends `${infer F}${string}` ? F : never;
3
+ type RemoveFirstOfString<S extends string> = S extends `${string}${infer R}` ? R : never;
4
+ type IsUpper<S extends string> = S extends Uppercase<S> ? true : false;
5
+ type IsLower<S extends string> = S extends Lowercase<S> ? true : false;
6
+ type SameLetterCase<X extends string, Y extends string> = IsUpper<X> extends IsUpper<Y> ? true : IsLower<X> extends IsLower<Y> ? true : false;
7
+ type CapitalizedWords<T extends readonly string[], Accumulator extends string = "", Normalize extends boolean | undefined = false> = T extends readonly [infer F extends string, ...infer R extends string[]] ? CapitalizedWords<R, `${Accumulator}${Capitalize<Normalize extends true ? Lowercase<F> : F>}`, Normalize> : Accumulator;
8
+ type JoinLowercaseWords<T extends readonly string[], Joiner extends string, Accumulator extends string = ""> = T extends readonly [infer F extends string, ...infer R extends string[]] ? Accumulator extends "" ? JoinLowercaseWords<R, Joiner, `${Accumulator}${Lowercase<F>}`> : JoinLowercaseWords<R, Joiner, `${Accumulator}${Joiner}${Lowercase<F>}`> : Accumulator;
9
+ type LastOfArray<T extends any[]> = T extends [...any, infer R] ? R : never;
10
+ type RemoveLastOfArray<T extends any[]> = T extends [...infer F, any] ? F : never;
11
+ type CaseOptions = {
12
+ normalize?: boolean;
13
+ };
14
+ type SplitByCase<T, Separator extends string = Splitter, Accumulator extends unknown[] = []> = string extends Separator ? string[] : T extends `${infer F}${infer R}` ? [LastOfArray<Accumulator>] extends [never] ? SplitByCase<R, Separator, [F]> : LastOfArray<Accumulator> extends string ? R extends "" ? SplitByCase<R, Separator, [
15
+ ...RemoveLastOfArray<Accumulator>,
16
+ `${LastOfArray<Accumulator>}${F}`
17
+ ]> : SameLetterCase<F, FirstOfString<R>> extends true ? F extends Separator ? FirstOfString<R> extends Separator ? SplitByCase<R, Separator, [...Accumulator, ""]> : IsUpper<FirstOfString<R>> extends true ? SplitByCase<RemoveFirstOfString<R>, Separator, [
18
+ ...Accumulator,
19
+ FirstOfString<R>
20
+ ]> : SplitByCase<R, Separator, [...Accumulator, ""]> : SplitByCase<R, Separator, [
21
+ ...RemoveLastOfArray<Accumulator>,
22
+ `${LastOfArray<Accumulator>}${F}`
23
+ ]> : IsLower<F> extends true ? SplitByCase<RemoveFirstOfString<R>, Separator, [
24
+ ...RemoveLastOfArray<Accumulator>,
25
+ `${LastOfArray<Accumulator>}${F}`,
26
+ FirstOfString<R>
27
+ ]> : SplitByCase<R, Separator, [...Accumulator, F]> : never : Accumulator extends [] ? T extends "" ? [] : string[] : Accumulator;
28
+ type JoinByCase<T, Joiner extends string> = string extends T ? string : string[] extends T ? string : T extends string ? SplitByCase<T> extends readonly string[] ? JoinLowercaseWords<SplitByCase<T>, Joiner> : never : T extends readonly string[] ? JoinLowercaseWords<T, Joiner> : never;
29
+ type PascalCase<T, Normalize extends boolean | undefined = false> = string extends T ? string : string[] extends T ? string : T extends string ? SplitByCase<T> extends readonly string[] ? CapitalizedWords<SplitByCase<T>, "", Normalize> : never : T extends readonly string[] ? CapitalizedWords<T, "", Normalize> : never;
30
+ type CamelCase<T, Normalize extends boolean | undefined = false> = string extends T ? string : string[] extends T ? string : Uncapitalize<PascalCase<T, Normalize>>;
31
+ type KebabCase<T extends string | readonly string[], Joiner extends string = "-"> = JoinByCase<T, Joiner>;
32
+ type SnakeCase<T extends string | readonly string[]> = JoinByCase<T, "_">;
33
+ type TrainCase<T, Normalize extends boolean | undefined = false, Joiner extends string = "-"> = string extends T ? string : string[] extends T ? string : T extends string ? SplitByCase<T> extends readonly string[] ? CapitalizedWords<SplitByCase<T>, Joiner> : never : T extends readonly string[] ? CapitalizedWords<T, Joiner, Normalize> : never;
34
+ type FlatCase<T extends string | readonly string[], Joiner extends string = ""> = JoinByCase<T, Joiner>;
35
+
36
+ declare function isUppercase(char?: string): boolean | undefined;
37
+ declare function splitByCase<T extends string>(str: T): SplitByCase<T>;
38
+ declare function splitByCase<T extends string, Separator extends readonly string[]>(str: T, separators: Separator): SplitByCase<T, Separator[number]>;
39
+ declare function upperFirst<S extends string>(str: S): Capitalize<S>;
40
+ declare function lowerFirst<S extends string>(str: S): Uncapitalize<S>;
41
+ declare function pascalCase(): "";
42
+ declare function pascalCase<T extends string | readonly string[], UserCaseOptions extends CaseOptions = CaseOptions>(str: T, opts?: CaseOptions): PascalCase<T, UserCaseOptions["normalize"]>;
43
+ declare function camelCase(): "";
44
+ declare function camelCase<T extends string | readonly string[], UserCaseOptions extends CaseOptions = CaseOptions>(str: T, opts?: UserCaseOptions): CamelCase<T, UserCaseOptions["normalize"]>;
45
+ declare function kebabCase(): "";
46
+ declare function kebabCase<T extends string | readonly string[]>(str: T): KebabCase<T>;
47
+ declare function kebabCase<T extends string | readonly string[], Joiner extends string>(str: T, joiner: Joiner): KebabCase<T, Joiner>;
48
+ declare function snakeCase(): "";
49
+ declare function snakeCase<T extends string | readonly string[]>(str: T): SnakeCase<T>;
50
+ declare function flatCase(): "";
51
+ declare function flatCase<T extends string | readonly string[]>(str: T): FlatCase<T>;
52
+ declare function trainCase(): "";
53
+ declare function trainCase<T extends string | readonly string[], UserCaseOptions extends CaseOptions = CaseOptions>(str: T, opts?: UserCaseOptions): TrainCase<T, UserCaseOptions["normalize"]>;
54
+ declare function titleCase(): "";
55
+ declare function titleCase<T extends string | readonly string[], UserCaseOptions extends CaseOptions = CaseOptions>(str: T, opts?: UserCaseOptions): TrainCase<T, UserCaseOptions["normalize"], " ">;
56
+
57
+ export { type CamelCase, type CaseOptions, type FlatCase, type JoinByCase, type KebabCase, type PascalCase, type SnakeCase, type SplitByCase, type TrainCase, camelCase, flatCase, isUppercase, kebabCase, lowerFirst, pascalCase, snakeCase, splitByCase, titleCase, trainCase, upperFirst };
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "scule",
3
+ "version": "1.3.0",
4
+ "description": "String case utils",
5
+ "repository": "unjs/scule",
6
+ "license": "MIT",
7
+ "sideEffects": false,
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "require": "./dist/index.cjs",
12
+ "import": "./dist/index.mjs"
13
+ },
14
+ "./*": "./*"
15
+ },
16
+ "main": "./dist/index.cjs",
17
+ "module": "./dist/index.mjs",
18
+ "types": "./dist/index.d.ts",
19
+ "files": [
20
+ "dist"
21
+ ],
22
+ "scripts": {
23
+ "build": "unbuild",
24
+ "dev": "vitest dev --typecheck",
25
+ "lint": "eslint --cache --ext .ts,.js,.mjs,.cjs . && prettier -c src test",
26
+ "lint:fix": "eslint --cache --ext .ts,.js,.mjs,.cjs . --fix && prettier -c src test -w",
27
+ "prepack": "pnpm run build",
28
+ "release": "pnpm test && changelogen --release --push && npm publish",
29
+ "test": "pnpm lint && vitest run --typecheck --coverage"
30
+ },
31
+ "devDependencies": {
32
+ "@types/node": "^20.11.3",
33
+ "@vitest/coverage-v8": "^1.2.0",
34
+ "changelogen": "^0.5.5",
35
+ "eslint": "^8.56.0",
36
+ "eslint-config-unjs": "^0.2.1",
37
+ "prettier": "^3.2.2",
38
+ "typescript": "^5.3.3",
39
+ "unbuild": "^2.0.0",
40
+ "vitest": "^1.2.0"
41
+ },
42
+ "packageManager": "pnpm@8.14.1"
43
+ }
@@ -0,0 +1,148 @@
1
+ import { FSLike } from "fdir";
2
+
3
+ //#region src/types.d.ts
4
+ type FileSystemAdapter = Partial<FSLike>;
5
+ interface GlobOptions {
6
+ /**
7
+ * Whether to return absolute paths. Disable to have relative paths.
8
+ * @default false
9
+ */
10
+ absolute?: boolean;
11
+ /**
12
+ * Enables support for brace expansion syntax, like `{a,b}` or `{1..9}`.
13
+ * @default true
14
+ */
15
+ braceExpansion?: boolean;
16
+ /**
17
+ * Whether to match in case-sensitive mode.
18
+ * @default true
19
+ */
20
+ caseSensitiveMatch?: boolean;
21
+ /**
22
+ * The working directory in which to search. Results will be returned relative to this directory, unless
23
+ * {@link absolute} is set.
24
+ *
25
+ * It is important to avoid globbing outside this directory when possible, even with absolute paths enabled,
26
+ * as doing so can harm performance due to having to recalculate relative paths.
27
+ * @default process.cwd()
28
+ */
29
+ cwd?: string | URL;
30
+ /**
31
+ * Logs useful debug information. Meant for development purposes. Logs can change at any time.
32
+ * @default false
33
+ */
34
+ debug?: boolean;
35
+ /**
36
+ * Maximum directory depth to crawl.
37
+ * @default Infinity
38
+ */
39
+ deep?: number;
40
+ /**
41
+ * Whether to return entries that start with a dot, like `.gitignore` or `.prettierrc`.
42
+ * @default false
43
+ */
44
+ dot?: boolean;
45
+ /**
46
+ * Whether to automatically expand directory patterns.
47
+ *
48
+ * Important to disable if migrating from [`fast-glob`](https://github.com/mrmlnc/fast-glob).
49
+ * @default true
50
+ */
51
+ expandDirectories?: boolean;
52
+ /**
53
+ * Enables support for extglobs, like `+(pattern)`.
54
+ * @default true
55
+ */
56
+ extglob?: boolean;
57
+ /**
58
+ * Whether to traverse and include symbolic links. Can slightly affect performance.
59
+ * @default true
60
+ */
61
+ followSymbolicLinks?: boolean;
62
+ /**
63
+ * An object that overrides `node:fs` functions.
64
+ * @default import('node:fs')
65
+ */
66
+ fs?: FileSystemAdapter;
67
+ /**
68
+ * Enables support for matching nested directories with globstars (`**`).
69
+ * If `false`, `**` behaves exactly like `*`.
70
+ * @default true
71
+ */
72
+ globstar?: boolean;
73
+ /**
74
+ * Glob patterns to exclude from the results.
75
+ * @default []
76
+ */
77
+ ignore?: string | readonly string[];
78
+ /**
79
+ * Enable to only return directories.
80
+ * If `true`, disables {@link onlyFiles}.
81
+ * @default false
82
+ */
83
+ onlyDirectories?: boolean;
84
+ /**
85
+ * Enable to only return files.
86
+ * @default true
87
+ */
88
+ onlyFiles?: boolean;
89
+ /**
90
+ * @deprecated Provide patterns as the first argument instead.
91
+ */
92
+ patterns?: string | readonly string[];
93
+ /**
94
+ * An `AbortSignal` to abort crawling the file system.
95
+ * @default undefined
96
+ */
97
+ signal?: AbortSignal;
98
+ }
99
+ //#endregion
100
+ //#region src/utils.d.ts
101
+ /**
102
+ * Converts a path to a pattern depending on the platform.
103
+ * Identical to {@link escapePath} on POSIX systems.
104
+ * @see {@link https://superchupu.dev/tinyglobby/documentation#convertPathToPattern}
105
+ */
106
+ declare const convertPathToPattern: (path: string) => string;
107
+ /**
108
+ * Escapes a path's special characters depending on the platform.
109
+ * @see {@link https://superchupu.dev/tinyglobby/documentation#escapePath}
110
+ */
111
+ declare const escapePath: (path: string) => string;
112
+ /**
113
+ * Checks if a pattern has dynamic parts.
114
+ *
115
+ * Has a few minor differences with [`fast-glob`](https://github.com/mrmlnc/fast-glob) for better accuracy:
116
+ *
117
+ * - Doesn't necessarily return `false` on patterns that include `\`.
118
+ * - Returns `true` if the pattern includes parentheses, regardless of them representing one single pattern or not.
119
+ * - Returns `true` for unfinished glob extensions i.e. `(h`, `+(h`.
120
+ * - Returns `true` for unfinished brace expansions as long as they include `,` or `..`.
121
+ *
122
+ * @see {@link https://superchupu.dev/tinyglobby/documentation#isDynamicPattern}
123
+ */
124
+ declare function isDynamicPattern(pattern: string, options?: {
125
+ caseSensitiveMatch: boolean;
126
+ }): boolean;
127
+ //#endregion
128
+ //#region src/index.d.ts
129
+ /**
130
+ * Asynchronously match files following a glob pattern.
131
+ * @see {@link https://superchupu.dev/tinyglobby/documentation#glob}
132
+ */
133
+ declare function glob(patterns: string | readonly string[], options?: Omit<GlobOptions, "patterns">): Promise<string[]>;
134
+ /**
135
+ * @deprecated Provide patterns as the first argument instead.
136
+ */
137
+ declare function glob(options: GlobOptions): Promise<string[]>;
138
+ /**
139
+ * Synchronously match files following a glob pattern.
140
+ * @see {@link https://superchupu.dev/tinyglobby/documentation#globSync}
141
+ */
142
+ declare function globSync(patterns: string | readonly string[], options?: Omit<GlobOptions, "patterns">): string[];
143
+ /**
144
+ * @deprecated Provide patterns as the first argument instead.
145
+ */
146
+ declare function globSync(options: GlobOptions): string[];
147
+ //#endregion
148
+ export { type FileSystemAdapter, type GlobOptions, convertPathToPattern, escapePath, glob, globSync, isDynamicPattern };
@@ -0,0 +1,70 @@
1
+ {
2
+ "name": "tinyglobby",
3
+ "version": "0.2.17",
4
+ "description": "A fast and minimal alternative to globby and fast-glob",
5
+ "type": "module",
6
+ "main": "./dist/index.cjs",
7
+ "module": "./dist/index.mjs",
8
+ "types": "./dist/index.d.cts",
9
+ "exports": {
10
+ ".": {
11
+ "import": "./dist/index.mjs",
12
+ "require": "./dist/index.cjs"
13
+ },
14
+ "./package.json": "./package.json"
15
+ },
16
+ "sideEffects": false,
17
+ "files": [
18
+ "dist"
19
+ ],
20
+ "author": "Superchupu",
21
+ "license": "MIT",
22
+ "keywords": [
23
+ "glob",
24
+ "patterns",
25
+ "tiny",
26
+ "fast"
27
+ ],
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "git+https://github.com/SuperchupuDev/tinyglobby.git"
31
+ },
32
+ "bugs": {
33
+ "url": "https://github.com/SuperchupuDev/tinyglobby/issues"
34
+ },
35
+ "homepage": "https://superchupu.dev/tinyglobby",
36
+ "funding": {
37
+ "url": "https://github.com/sponsors/SuperchupuDev"
38
+ },
39
+ "dependencies": {
40
+ "fdir": "^6.5.0",
41
+ "picomatch": "^4.0.4"
42
+ },
43
+ "devDependencies": {
44
+ "@biomejs/biome": "^2.4.16",
45
+ "@types/node": "^25.9.1",
46
+ "@types/picomatch": "^4.0.3",
47
+ "fast-glob": "^3.3.3",
48
+ "fs-fixture": "^2.14.0",
49
+ "glob": "^13.0.6",
50
+ "tinybench": "^6.0.2",
51
+ "tsdown": "^0.22.1",
52
+ "typescript": "^6.0.3"
53
+ },
54
+ "engines": {
55
+ "node": ">=12.0.0"
56
+ },
57
+ "scripts": {
58
+ "bench": "node benchmark/bench.ts",
59
+ "bench:setup": "node benchmark/setup.ts",
60
+ "build": "tsdown",
61
+ "check": "biome check",
62
+ "check:fix": "biome check --write --unsafe",
63
+ "format": "biome format --write",
64
+ "lint": "biome lint",
65
+ "test": "node --test \"test/**/*.ts\"",
66
+ "test:coverage": "node --test --experimental-test-coverage \"test/**/*.ts\"",
67
+ "test:only": "node --test --test-only \"test/**/*.ts\"",
68
+ "typecheck": "tsc --noEmit"
69
+ }
70
+ }