@hasna/connectors 1.3.10 → 1.3.12

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 (676) hide show
  1. package/README.md +29 -348
  2. package/bin/index.js +8804 -6464
  3. package/bin/mcp.js +4347 -3066
  4. package/bin/serve.js +3581 -3025
  5. package/dashboard/dist/assets/index-ClBXkNbL.css +1 -0
  6. package/dashboard/dist/assets/index-CwLL4Zbv.js +284 -0
  7. package/dashboard/dist/index.html +2 -2
  8. package/dist/db/agents.d.ts +1 -1
  9. package/dist/db/database.d.ts +3 -2
  10. package/dist/db/database.test.d.ts +1 -0
  11. package/dist/db/jobs.d.ts +1 -1
  12. package/dist/db/locks.d.ts +1 -1
  13. package/dist/db/promotions.d.ts +1 -1
  14. package/dist/db/rate.d.ts +1 -1
  15. package/dist/db/usage.d.ts +1 -1
  16. package/dist/db/workflows.d.ts +1 -1
  17. package/dist/index.js +3843 -3152
  18. package/dist/lib/scheduler.d.ts +3 -1
  19. package/dist/lib/workflow-runner.test.d.ts +1 -0
  20. package/package.json +2 -2
  21. package/connectors/connect-yousign/bun.lock +0 -32
  22. package/connectors/connect-yousign/node_modules/@types/bun/LICENSE +0 -21
  23. package/connectors/connect-yousign/node_modules/@types/bun/README.md +0 -20
  24. package/connectors/connect-yousign/node_modules/@types/bun/index.d.ts +0 -1
  25. package/connectors/connect-yousign/node_modules/@types/bun/package.json +0 -53
  26. package/connectors/connect-yousign/node_modules/@types/node/LICENSE +0 -21
  27. package/connectors/connect-yousign/node_modules/@types/node/README.md +0 -15
  28. package/connectors/connect-yousign/node_modules/@types/node/assert/strict.d.ts +0 -105
  29. package/connectors/connect-yousign/node_modules/@types/node/assert.d.ts +0 -955
  30. package/connectors/connect-yousign/node_modules/@types/node/async_hooks.d.ts +0 -623
  31. package/connectors/connect-yousign/node_modules/@types/node/buffer.buffer.d.ts +0 -466
  32. package/connectors/connect-yousign/node_modules/@types/node/buffer.d.ts +0 -1810
  33. package/connectors/connect-yousign/node_modules/@types/node/child_process.d.ts +0 -1433
  34. package/connectors/connect-yousign/node_modules/@types/node/cluster.d.ts +0 -486
  35. package/connectors/connect-yousign/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
  36. package/connectors/connect-yousign/node_modules/@types/node/console.d.ts +0 -151
  37. package/connectors/connect-yousign/node_modules/@types/node/constants.d.ts +0 -20
  38. package/connectors/connect-yousign/node_modules/@types/node/crypto.d.ts +0 -4065
  39. package/connectors/connect-yousign/node_modules/@types/node/dgram.d.ts +0 -564
  40. package/connectors/connect-yousign/node_modules/@types/node/diagnostics_channel.d.ts +0 -576
  41. package/connectors/connect-yousign/node_modules/@types/node/dns/promises.d.ts +0 -503
  42. package/connectors/connect-yousign/node_modules/@types/node/dns.d.ts +0 -922
  43. package/connectors/connect-yousign/node_modules/@types/node/domain.d.ts +0 -166
  44. package/connectors/connect-yousign/node_modules/@types/node/events.d.ts +0 -1047
  45. package/connectors/connect-yousign/node_modules/@types/node/fs/promises.d.ts +0 -1329
  46. package/connectors/connect-yousign/node_modules/@types/node/fs.d.ts +0 -4678
  47. package/connectors/connect-yousign/node_modules/@types/node/globals.d.ts +0 -150
  48. package/connectors/connect-yousign/node_modules/@types/node/globals.typedarray.d.ts +0 -101
  49. package/connectors/connect-yousign/node_modules/@types/node/http.d.ts +0 -2188
  50. package/connectors/connect-yousign/node_modules/@types/node/http2.d.ts +0 -2480
  51. package/connectors/connect-yousign/node_modules/@types/node/https.d.ts +0 -405
  52. package/connectors/connect-yousign/node_modules/@types/node/index.d.ts +0 -115
  53. package/connectors/connect-yousign/node_modules/@types/node/inspector/promises.d.ts +0 -41
  54. package/connectors/connect-yousign/node_modules/@types/node/inspector.d.ts +0 -269
  55. package/connectors/connect-yousign/node_modules/@types/node/inspector.generated.d.ts +0 -4401
  56. package/connectors/connect-yousign/node_modules/@types/node/module.d.ts +0 -757
  57. package/connectors/connect-yousign/node_modules/@types/node/net.d.ts +0 -933
  58. package/connectors/connect-yousign/node_modules/@types/node/os.d.ts +0 -507
  59. package/connectors/connect-yousign/node_modules/@types/node/package.json +0 -155
  60. package/connectors/connect-yousign/node_modules/@types/node/path/posix.d.ts +0 -8
  61. package/connectors/connect-yousign/node_modules/@types/node/path/win32.d.ts +0 -8
  62. package/connectors/connect-yousign/node_modules/@types/node/path.d.ts +0 -187
  63. package/connectors/connect-yousign/node_modules/@types/node/perf_hooks.d.ts +0 -643
  64. package/connectors/connect-yousign/node_modules/@types/node/process.d.ts +0 -2175
  65. package/connectors/connect-yousign/node_modules/@types/node/punycode.d.ts +0 -117
  66. package/connectors/connect-yousign/node_modules/@types/node/querystring.d.ts +0 -152
  67. package/connectors/connect-yousign/node_modules/@types/node/quic.d.ts +0 -910
  68. package/connectors/connect-yousign/node_modules/@types/node/readline/promises.d.ts +0 -161
  69. package/connectors/connect-yousign/node_modules/@types/node/readline.d.ts +0 -542
  70. package/connectors/connect-yousign/node_modules/@types/node/repl.d.ts +0 -415
  71. package/connectors/connect-yousign/node_modules/@types/node/sea.d.ts +0 -162
  72. package/connectors/connect-yousign/node_modules/@types/node/sqlite.d.ts +0 -1065
  73. package/connectors/connect-yousign/node_modules/@types/node/stream/consumers.d.ts +0 -38
  74. package/connectors/connect-yousign/node_modules/@types/node/stream/promises.d.ts +0 -211
  75. package/connectors/connect-yousign/node_modules/@types/node/stream/web.d.ts +0 -296
  76. package/connectors/connect-yousign/node_modules/@types/node/stream.d.ts +0 -1770
  77. package/connectors/connect-yousign/node_modules/@types/node/string_decoder.d.ts +0 -67
  78. package/connectors/connect-yousign/node_modules/@types/node/test/reporters.d.ts +0 -96
  79. package/connectors/connect-yousign/node_modules/@types/node/test.d.ts +0 -2275
  80. package/connectors/connect-yousign/node_modules/@types/node/timers/promises.d.ts +0 -108
  81. package/connectors/connect-yousign/node_modules/@types/node/timers.d.ts +0 -159
  82. package/connectors/connect-yousign/node_modules/@types/node/tls.d.ts +0 -1203
  83. package/connectors/connect-yousign/node_modules/@types/node/trace_events.d.ts +0 -197
  84. package/connectors/connect-yousign/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -462
  85. package/connectors/connect-yousign/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +0 -71
  86. package/connectors/connect-yousign/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -36
  87. package/connectors/connect-yousign/node_modules/@types/node/ts5.6/index.d.ts +0 -117
  88. package/connectors/connect-yousign/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +0 -72
  89. package/connectors/connect-yousign/node_modules/@types/node/ts5.7/index.d.ts +0 -117
  90. package/connectors/connect-yousign/node_modules/@types/node/tty.d.ts +0 -250
  91. package/connectors/connect-yousign/node_modules/@types/node/url.d.ts +0 -541
  92. package/connectors/connect-yousign/node_modules/@types/node/util/types.d.ts +0 -558
  93. package/connectors/connect-yousign/node_modules/@types/node/util.d.ts +0 -1687
  94. package/connectors/connect-yousign/node_modules/@types/node/v8.d.ts +0 -988
  95. package/connectors/connect-yousign/node_modules/@types/node/vm.d.ts +0 -1208
  96. package/connectors/connect-yousign/node_modules/@types/node/wasi.d.ts +0 -202
  97. package/connectors/connect-yousign/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -59
  98. package/connectors/connect-yousign/node_modules/@types/node/web-globals/blob.d.ts +0 -23
  99. package/connectors/connect-yousign/node_modules/@types/node/web-globals/console.d.ts +0 -9
  100. package/connectors/connect-yousign/node_modules/@types/node/web-globals/crypto.d.ts +0 -39
  101. package/connectors/connect-yousign/node_modules/@types/node/web-globals/domexception.d.ts +0 -68
  102. package/connectors/connect-yousign/node_modules/@types/node/web-globals/encoding.d.ts +0 -11
  103. package/connectors/connect-yousign/node_modules/@types/node/web-globals/events.d.ts +0 -106
  104. package/connectors/connect-yousign/node_modules/@types/node/web-globals/fetch.d.ts +0 -69
  105. package/connectors/connect-yousign/node_modules/@types/node/web-globals/importmeta.d.ts +0 -13
  106. package/connectors/connect-yousign/node_modules/@types/node/web-globals/messaging.d.ts +0 -23
  107. package/connectors/connect-yousign/node_modules/@types/node/web-globals/navigator.d.ts +0 -25
  108. package/connectors/connect-yousign/node_modules/@types/node/web-globals/performance.d.ts +0 -45
  109. package/connectors/connect-yousign/node_modules/@types/node/web-globals/storage.d.ts +0 -24
  110. package/connectors/connect-yousign/node_modules/@types/node/web-globals/streams.d.ts +0 -115
  111. package/connectors/connect-yousign/node_modules/@types/node/web-globals/timers.d.ts +0 -44
  112. package/connectors/connect-yousign/node_modules/@types/node/web-globals/url.d.ts +0 -24
  113. package/connectors/connect-yousign/node_modules/@types/node/worker_threads.d.ts +0 -717
  114. package/connectors/connect-yousign/node_modules/@types/node/zlib.d.ts +0 -682
  115. package/connectors/connect-yousign/node_modules/bun-types/CLAUDE.md +0 -105
  116. package/connectors/connect-yousign/node_modules/bun-types/README.md +0 -33
  117. package/connectors/connect-yousign/node_modules/bun-types/bun.d.ts +0 -8481
  118. package/connectors/connect-yousign/node_modules/bun-types/bun.ns.d.ts +0 -5
  119. package/connectors/connect-yousign/node_modules/bun-types/bundle.d.ts +0 -74
  120. package/connectors/connect-yousign/node_modules/bun-types/deprecated.d.ts +0 -184
  121. package/connectors/connect-yousign/node_modules/bun-types/devserver.d.ts +0 -187
  122. package/connectors/connect-yousign/node_modules/bun-types/docs/README.md +0 -28
  123. package/connectors/connect-yousign/node_modules/bun-types/docs/bundler/bytecode.mdx +0 -447
  124. package/connectors/connect-yousign/node_modules/bun-types/docs/bundler/css.mdx +0 -1024
  125. package/connectors/connect-yousign/node_modules/bun-types/docs/bundler/esbuild.mdx +0 -304
  126. package/connectors/connect-yousign/node_modules/bun-types/docs/bundler/executables.mdx +0 -1318
  127. package/connectors/connect-yousign/node_modules/bun-types/docs/bundler/fullstack.mdx +0 -1086
  128. package/connectors/connect-yousign/node_modules/bun-types/docs/bundler/hot-reloading.mdx +0 -229
  129. package/connectors/connect-yousign/node_modules/bun-types/docs/bundler/html-static.mdx +0 -498
  130. package/connectors/connect-yousign/node_modules/bun-types/docs/bundler/index.mdx +0 -1840
  131. package/connectors/connect-yousign/node_modules/bun-types/docs/bundler/loaders.mdx +0 -451
  132. package/connectors/connect-yousign/node_modules/bun-types/docs/bundler/macros.mdx +0 -328
  133. package/connectors/connect-yousign/node_modules/bun-types/docs/bundler/minifier.mdx +0 -1286
  134. package/connectors/connect-yousign/node_modules/bun-types/docs/bundler/plugins.mdx +0 -477
  135. package/connectors/connect-yousign/node_modules/bun-types/docs/bundler/standalone-html.mdx +0 -314
  136. package/connectors/connect-yousign/node_modules/bun-types/docs/feedback.mdx +0 -75
  137. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/binary/arraybuffer-to-array.mdx +0 -29
  138. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/binary/arraybuffer-to-blob.mdx +0 -26
  139. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/binary/arraybuffer-to-buffer.mdx +0 -27
  140. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/binary/arraybuffer-to-string.mdx +0 -17
  141. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/binary/arraybuffer-to-typedarray.mdx +0 -41
  142. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/binary/blob-to-arraybuffer.mdx +0 -16
  143. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/binary/blob-to-dataview.mdx +0 -16
  144. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/binary/blob-to-stream.mdx +0 -16
  145. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/binary/blob-to-string.mdx +0 -17
  146. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/binary/blob-to-typedarray.mdx +0 -16
  147. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/binary/buffer-to-arraybuffer.mdx +0 -16
  148. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/binary/buffer-to-blob.mdx +0 -16
  149. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/binary/buffer-to-readablestream.mdx +0 -43
  150. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/binary/buffer-to-string.mdx +0 -27
  151. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/binary/buffer-to-typedarray.mdx +0 -16
  152. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/binary/dataview-to-string.mdx +0 -17
  153. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/binary/typedarray-to-arraybuffer.mdx +0 -27
  154. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/binary/typedarray-to-blob.mdx +0 -18
  155. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/binary/typedarray-to-buffer.mdx +0 -16
  156. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/binary/typedarray-to-dataview.mdx +0 -16
  157. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/binary/typedarray-to-readablestream.mdx +0 -43
  158. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/binary/typedarray-to-string.mdx +0 -18
  159. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/deployment/aws-lambda.mdx +0 -204
  160. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/deployment/digital-ocean.mdx +0 -161
  161. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/deployment/google-cloud-run.mdx +0 -194
  162. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/deployment/railway.mdx +0 -145
  163. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/deployment/render.mdx +0 -82
  164. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/deployment/vercel.mdx +0 -97
  165. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/astro.mdx +0 -82
  166. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/discordjs.mdx +0 -80
  167. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/docker.mdx +0 -151
  168. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/drizzle.mdx +0 -195
  169. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/elysia.mdx +0 -31
  170. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/express.mdx +0 -43
  171. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/gel.mdx +0 -261
  172. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/hono.mdx +0 -47
  173. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/mongoose.mdx +0 -92
  174. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/neon-drizzle.mdx +0 -234
  175. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/neon-serverless-postgres.mdx +0 -60
  176. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/nextjs.mdx +0 -103
  177. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/nuxt.mdx +0 -96
  178. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/pm2.mdx +0 -55
  179. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/prisma-postgres.mdx +0 -169
  180. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/prisma.mdx +0 -164
  181. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/qwik.mdx +0 -114
  182. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/react.mdx +0 -52
  183. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/remix.mdx +0 -97
  184. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/sentry.mdx +0 -54
  185. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/solidstart.mdx +0 -62
  186. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/ssr-react.mdx +0 -49
  187. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/stric.mdx +0 -54
  188. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/sveltekit.mdx +0 -138
  189. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/systemd.mdx +0 -114
  190. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/tanstack-start.mdx +0 -791
  191. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/upstash.mdx +0 -87
  192. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/ecosystem/vite.mdx +0 -77
  193. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/html-rewriter/extract-links.mdx +0 -71
  194. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/html-rewriter/extract-social-meta.mdx +0 -97
  195. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/http/cluster.mdx +0 -69
  196. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/http/fetch-unix.mdx +0 -35
  197. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/http/fetch.mdx +0 -26
  198. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/http/file-uploads.mdx +0 -97
  199. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/http/hot.mdx +0 -28
  200. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/http/proxy.mdx +0 -50
  201. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/http/server.mdx +0 -48
  202. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/http/simple.mdx +0 -20
  203. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/http/stream-file.mdx +0 -50
  204. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/http/stream-iterator.mdx +0 -49
  205. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/http/stream-node-streams-in-bun.mdx +0 -22
  206. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/http/tls.mdx +0 -32
  207. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/index.mdx +0 -10
  208. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/install/add-dev.mdx +0 -28
  209. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/install/add-git.mdx +0 -40
  210. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/install/add-optional.mdx +0 -27
  211. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/install/add-peer.mdx +0 -45
  212. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/install/add-tarball.mdx +0 -35
  213. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/install/add.mdx +0 -44
  214. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/install/azure-artifacts.mdx +0 -76
  215. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/install/cicd.mdx +0 -43
  216. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/install/custom-registry.mdx +0 -32
  217. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/install/from-npm-install-to-bun-install.mdx +0 -230
  218. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/install/git-diff-bun-lockfile.mdx +0 -48
  219. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/install/jfrog-artifactory.mdx +0 -28
  220. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/install/npm-alias.mdx +0 -25
  221. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/install/registry-scope.mdx +0 -40
  222. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/install/trusted.mdx +0 -52
  223. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/install/workspaces.mdx +0 -70
  224. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/install/yarnlock.mdx +0 -51
  225. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/process/argv.mdx +0 -66
  226. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/process/ctrl-c.mdx +0 -18
  227. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/process/ipc.mdx +0 -69
  228. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/process/nanoseconds.mdx +0 -15
  229. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/process/os-signals.mdx +0 -31
  230. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/process/spawn-stderr.mdx +0 -34
  231. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/process/spawn-stdout.mdx +0 -28
  232. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/process/spawn.mdx +0 -43
  233. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/process/stdin.mdx +0 -62
  234. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/read-file/arraybuffer.mdx +0 -30
  235. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/read-file/buffer.mdx +0 -21
  236. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/read-file/exists.mdx +0 -18
  237. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/read-file/json.mdx +0 -19
  238. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/read-file/mime.mdx +0 -22
  239. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/read-file/stream.mdx +0 -28
  240. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/read-file/string.mdx +0 -24
  241. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/read-file/uint8array.mdx +0 -23
  242. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/read-file/watch.mdx +0 -66
  243. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/runtime/build-time-constants.mdx +0 -295
  244. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/runtime/cicd.mdx +0 -45
  245. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/runtime/codesign-macos-executable.mdx +0 -61
  246. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/runtime/define-constant.mdx +0 -149
  247. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/runtime/delete-directory.mdx +0 -39
  248. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/runtime/delete-file.mdx +0 -21
  249. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/runtime/heap-snapshot.mdx +0 -28
  250. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/runtime/import-html.mdx +0 -15
  251. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/runtime/import-json.mdx +0 -46
  252. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/runtime/import-json5.mdx +0 -74
  253. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/runtime/import-toml.mdx +0 -32
  254. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/runtime/import-yaml.mdx +0 -104
  255. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/runtime/read-env.mdx +0 -37
  256. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/runtime/set-env.mdx +0 -51
  257. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/runtime/shell.mdx +0 -42
  258. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/runtime/timezone.mdx +0 -38
  259. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/runtime/tsconfig-paths.mdx +0 -31
  260. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/runtime/typescript.mdx +0 -51
  261. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/runtime/vscode-debugger.mdx +0 -47
  262. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/runtime/web-debugger.mdx +0 -103
  263. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/streams/node-readable-to-arraybuffer.mdx +0 -13
  264. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/streams/node-readable-to-blob.mdx +0 -13
  265. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/streams/node-readable-to-json.mdx +0 -14
  266. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/streams/node-readable-to-string.mdx +0 -14
  267. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/streams/node-readable-to-uint8array.mdx +0 -13
  268. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/streams/to-array.mdx +0 -16
  269. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/streams/to-arraybuffer.mdx +0 -16
  270. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/streams/to-blob.mdx +0 -16
  271. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/streams/to-buffer.mdx +0 -17
  272. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/streams/to-json.mdx +0 -16
  273. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/streams/to-string.mdx +0 -16
  274. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/streams/to-typedarray.mdx +0 -24
  275. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/test/bail.mdx +0 -24
  276. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/test/concurrent-test-glob.mdx +0 -146
  277. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/test/coverage-threshold.mdx +0 -67
  278. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/test/coverage.mdx +0 -49
  279. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/test/happy-dom.mdx +0 -73
  280. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/test/migrate-from-jest.mdx +0 -125
  281. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/test/mock-clock.mdx +0 -50
  282. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/test/mock-functions.mdx +0 -70
  283. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/test/rerun-each.mdx +0 -16
  284. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/test/run-tests.mdx +0 -116
  285. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/test/skip-tests.mdx +0 -43
  286. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/test/snapshot.mdx +0 -102
  287. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/test/spy-on.mdx +0 -49
  288. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/test/svelte-test.mdx +0 -113
  289. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/test/testing-library.mdx +0 -93
  290. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/test/timeout.mdx +0 -17
  291. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/test/todo-tests.mdx +0 -74
  292. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/test/update-snapshots.mdx +0 -49
  293. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/test/watch-mode.mdx +0 -24
  294. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/util/base64.mdx +0 -17
  295. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/util/deep-equals.mdx +0 -41
  296. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/util/deflate.mdx +0 -20
  297. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/util/detect-bun.mdx +0 -28
  298. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/util/entrypoint.mdx +0 -19
  299. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/util/escape-html.mdx +0 -24
  300. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/util/file-url-to-path.mdx +0 -16
  301. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/util/gzip.mdx +0 -20
  302. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/util/hash-a-password.mdx +0 -56
  303. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/util/import-meta-dir.mdx +0 -15
  304. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/util/import-meta-file.mdx +0 -15
  305. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/util/import-meta-path.mdx +0 -15
  306. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/util/javascript-uuid.mdx +0 -25
  307. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/util/main.mdx +0 -43
  308. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/util/path-to-file-url.mdx +0 -16
  309. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/util/sleep.mdx +0 -24
  310. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/util/upgrade.mdx +0 -93
  311. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/util/version.mdx +0 -23
  312. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/util/which-path-to-executable-bin.mdx +0 -17
  313. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/websocket/compression.mdx +0 -33
  314. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/websocket/context.mdx +0 -79
  315. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/websocket/pubsub.mdx +0 -43
  316. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/websocket/simple.mdx +0 -38
  317. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/write-file/append.mdx +0 -54
  318. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/write-file/basic.mdx +0 -46
  319. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/write-file/blob.mdx +0 -30
  320. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/write-file/cat.mdx +0 -19
  321. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/write-file/file-cp.mdx +0 -18
  322. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/write-file/filesink.mdx +0 -54
  323. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/write-file/response.mdx +0 -19
  324. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/write-file/stdout.mdx +0 -23
  325. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/write-file/stream.mdx +0 -19
  326. package/connectors/connect-yousign/node_modules/bun-types/docs/guides/write-file/unlink.mdx +0 -18
  327. package/connectors/connect-yousign/node_modules/bun-types/docs/index.mdx +0 -133
  328. package/connectors/connect-yousign/node_modules/bun-types/docs/installation.mdx +0 -372
  329. package/connectors/connect-yousign/node_modules/bun-types/docs/pm/bunx.mdx +0 -91
  330. package/connectors/connect-yousign/node_modules/bun-types/docs/pm/catalogs.mdx +0 -292
  331. package/connectors/connect-yousign/node_modules/bun-types/docs/pm/cli/add.mdx +0 -179
  332. package/connectors/connect-yousign/node_modules/bun-types/docs/pm/cli/audit.mdx +0 -60
  333. package/connectors/connect-yousign/node_modules/bun-types/docs/pm/cli/info.mdx +0 -70
  334. package/connectors/connect-yousign/node_modules/bun-types/docs/pm/cli/install.mdx +0 -591
  335. package/connectors/connect-yousign/node_modules/bun-types/docs/pm/cli/link.mdx +0 -61
  336. package/connectors/connect-yousign/node_modules/bun-types/docs/pm/cli/outdated.mdx +0 -197
  337. package/connectors/connect-yousign/node_modules/bun-types/docs/pm/cli/patch.mdx +0 -69
  338. package/connectors/connect-yousign/node_modules/bun-types/docs/pm/cli/pm.mdx +0 -323
  339. package/connectors/connect-yousign/node_modules/bun-types/docs/pm/cli/publish.mdx +0 -131
  340. package/connectors/connect-yousign/node_modules/bun-types/docs/pm/cli/remove.mdx +0 -16
  341. package/connectors/connect-yousign/node_modules/bun-types/docs/pm/cli/update.mdx +0 -140
  342. package/connectors/connect-yousign/node_modules/bun-types/docs/pm/cli/why.mdx +0 -84
  343. package/connectors/connect-yousign/node_modules/bun-types/docs/pm/filter.mdx +0 -127
  344. package/connectors/connect-yousign/node_modules/bun-types/docs/pm/global-cache.mdx +0 -72
  345. package/connectors/connect-yousign/node_modules/bun-types/docs/pm/isolated-installs.mdx +0 -220
  346. package/connectors/connect-yousign/node_modules/bun-types/docs/pm/lifecycle.mdx +0 -64
  347. package/connectors/connect-yousign/node_modules/bun-types/docs/pm/lockfile.mdx +0 -64
  348. package/connectors/connect-yousign/node_modules/bun-types/docs/pm/npmrc.mdx +0 -245
  349. package/connectors/connect-yousign/node_modules/bun-types/docs/pm/overrides.mdx +0 -83
  350. package/connectors/connect-yousign/node_modules/bun-types/docs/pm/scopes-registries.mdx +0 -35
  351. package/connectors/connect-yousign/node_modules/bun-types/docs/pm/security-scanner-api.mdx +0 -95
  352. package/connectors/connect-yousign/node_modules/bun-types/docs/pm/workspaces.mdx +0 -115
  353. package/connectors/connect-yousign/node_modules/bun-types/docs/project/benchmarking.mdx +0 -296
  354. package/connectors/connect-yousign/node_modules/bun-types/docs/project/bindgen.mdx +0 -223
  355. package/connectors/connect-yousign/node_modules/bun-types/docs/project/building-windows.mdx +0 -143
  356. package/connectors/connect-yousign/node_modules/bun-types/docs/project/contributing.mdx +0 -366
  357. package/connectors/connect-yousign/node_modules/bun-types/docs/project/feedback.mdx +0 -20
  358. package/connectors/connect-yousign/node_modules/bun-types/docs/project/license.mdx +0 -78
  359. package/connectors/connect-yousign/node_modules/bun-types/docs/project/roadmap.mdx +0 -8
  360. package/connectors/connect-yousign/node_modules/bun-types/docs/quickstart.mdx +0 -251
  361. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/archive.mdx +0 -452
  362. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/auto-install.mdx +0 -97
  363. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/binary-data.mdx +0 -846
  364. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/bun-apis.mdx +0 -59
  365. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/bunfig.mdx +0 -754
  366. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/c-compiler.mdx +0 -204
  367. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/child-process.mdx +0 -659
  368. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/color.mdx +0 -267
  369. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/console.mdx +0 -67
  370. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/cookies.mdx +0 -454
  371. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/debugger.mdx +0 -335
  372. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/environment-variables.mdx +0 -231
  373. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/ffi.mdx +0 -567
  374. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/file-io.mdx +0 -306
  375. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/file-system-router.mdx +0 -118
  376. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/file-types.mdx +0 -482
  377. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/glob.mdx +0 -181
  378. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/globals.mdx +0 -72
  379. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/hashing.mdx +0 -315
  380. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/html-rewriter.mdx +0 -333
  381. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/http/cookies.mdx +0 -79
  382. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/http/error-handling.mdx +0 -40
  383. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/http/metrics.mdx +0 -36
  384. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/http/routing.mdx +0 -289
  385. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/http/server.mdx +0 -645
  386. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/http/tls.mdx +0 -101
  387. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/http/websockets.mdx +0 -414
  388. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/index.mdx +0 -223
  389. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/json5.mdx +0 -271
  390. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/jsonl.mdx +0 -188
  391. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/jsx.mdx +0 -115
  392. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/markdown.mdx +0 -344
  393. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/module-resolution.mdx +0 -374
  394. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/networking/dns.mdx +0 -111
  395. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/networking/fetch.mdx +0 -484
  396. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/networking/tcp.mdx +0 -239
  397. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/networking/udp.mdx +0 -180
  398. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/node-api.mdx +0 -19
  399. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/nodejs-compat.mdx +0 -468
  400. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/plugins.mdx +0 -419
  401. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/redis.mdx +0 -583
  402. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/repl.mdx +0 -176
  403. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/s3.mdx +0 -881
  404. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/secrets.mdx +0 -340
  405. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/semver.mdx +0 -57
  406. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/shell.mdx +0 -637
  407. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/sql.mdx +0 -1404
  408. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/sqlite.mdx +0 -721
  409. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/streams.mdx +0 -232
  410. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/templating/create.mdx +0 -269
  411. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/templating/init.mdx +0 -58
  412. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/transpiler.mdx +0 -288
  413. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/typescript.mdx +0 -58
  414. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/utils.mdx +0 -1010
  415. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/watch-mode.mdx +0 -161
  416. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/web-apis.mdx +0 -29
  417. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/workers.mdx +0 -314
  418. package/connectors/connect-yousign/node_modules/bun-types/docs/runtime/yaml.mdx +0 -469
  419. package/connectors/connect-yousign/node_modules/bun-types/docs/snippets/cli/add.mdx +0 -166
  420. package/connectors/connect-yousign/node_modules/bun-types/docs/snippets/cli/build.mdx +0 -197
  421. package/connectors/connect-yousign/node_modules/bun-types/docs/snippets/cli/bunx.mdx +0 -49
  422. package/connectors/connect-yousign/node_modules/bun-types/docs/snippets/cli/feedback.mdx +0 -17
  423. package/connectors/connect-yousign/node_modules/bun-types/docs/snippets/cli/init.mdx +0 -84
  424. package/connectors/connect-yousign/node_modules/bun-types/docs/snippets/cli/install.mdx +0 -173
  425. package/connectors/connect-yousign/node_modules/bun-types/docs/snippets/cli/link.mdx +0 -163
  426. package/connectors/connect-yousign/node_modules/bun-types/docs/snippets/cli/outdated.mdx +0 -140
  427. package/connectors/connect-yousign/node_modules/bun-types/docs/snippets/cli/patch.mdx +0 -171
  428. package/connectors/connect-yousign/node_modules/bun-types/docs/snippets/cli/publish.mdx +0 -198
  429. package/connectors/connect-yousign/node_modules/bun-types/docs/snippets/cli/remove.mdx +0 -146
  430. package/connectors/connect-yousign/node_modules/bun-types/docs/snippets/cli/run.mdx +0 -305
  431. package/connectors/connect-yousign/node_modules/bun-types/docs/snippets/cli/test.mdx +0 -105
  432. package/connectors/connect-yousign/node_modules/bun-types/docs/snippets/cli/update.mdx +0 -144
  433. package/connectors/connect-yousign/node_modules/bun-types/docs/test/code-coverage.mdx +0 -409
  434. package/connectors/connect-yousign/node_modules/bun-types/docs/test/configuration.mdx +0 -520
  435. package/connectors/connect-yousign/node_modules/bun-types/docs/test/dates-times.mdx +0 -129
  436. package/connectors/connect-yousign/node_modules/bun-types/docs/test/discovery.mdx +0 -90
  437. package/connectors/connect-yousign/node_modules/bun-types/docs/test/dom.mdx +0 -226
  438. package/connectors/connect-yousign/node_modules/bun-types/docs/test/index.mdx +0 -409
  439. package/connectors/connect-yousign/node_modules/bun-types/docs/test/lifecycle.mdx +0 -366
  440. package/connectors/connect-yousign/node_modules/bun-types/docs/test/mocks.mdx +0 -637
  441. package/connectors/connect-yousign/node_modules/bun-types/docs/test/reporters.mdx +0 -126
  442. package/connectors/connect-yousign/node_modules/bun-types/docs/test/runtime-behavior.mdx +0 -342
  443. package/connectors/connect-yousign/node_modules/bun-types/docs/test/snapshots.mdx +0 -434
  444. package/connectors/connect-yousign/node_modules/bun-types/docs/test/writing-tests.mdx +0 -672
  445. package/connectors/connect-yousign/node_modules/bun-types/docs/typescript.mdx +0 -54
  446. package/connectors/connect-yousign/node_modules/bun-types/extensions.d.ts +0 -40
  447. package/connectors/connect-yousign/node_modules/bun-types/fetch.d.ts +0 -79
  448. package/connectors/connect-yousign/node_modules/bun-types/ffi.d.ts +0 -1154
  449. package/connectors/connect-yousign/node_modules/bun-types/globals.d.ts +0 -2067
  450. package/connectors/connect-yousign/node_modules/bun-types/html-rewriter.d.ts +0 -186
  451. package/connectors/connect-yousign/node_modules/bun-types/index.d.ts +0 -32
  452. package/connectors/connect-yousign/node_modules/bun-types/jsc.d.ts +0 -233
  453. package/connectors/connect-yousign/node_modules/bun-types/jsx.d.ts +0 -11
  454. package/connectors/connect-yousign/node_modules/bun-types/overrides.d.ts +0 -376
  455. package/connectors/connect-yousign/node_modules/bun-types/package.json +0 -37
  456. package/connectors/connect-yousign/node_modules/bun-types/redis.d.ts +0 -3352
  457. package/connectors/connect-yousign/node_modules/bun-types/s3.d.ts +0 -1335
  458. package/connectors/connect-yousign/node_modules/bun-types/security.d.ts +0 -101
  459. package/connectors/connect-yousign/node_modules/bun-types/serve.d.ts +0 -1296
  460. package/connectors/connect-yousign/node_modules/bun-types/shell.d.ts +0 -380
  461. package/connectors/connect-yousign/node_modules/bun-types/sql.d.ts +0 -887
  462. package/connectors/connect-yousign/node_modules/bun-types/sqlite.d.ts +0 -1322
  463. package/connectors/connect-yousign/node_modules/bun-types/test-globals.d.ts +0 -22
  464. package/connectors/connect-yousign/node_modules/bun-types/test.d.ts +0 -2392
  465. package/connectors/connect-yousign/node_modules/bun-types/vendor/expect-type/branding.d.ts +0 -283
  466. package/connectors/connect-yousign/node_modules/bun-types/vendor/expect-type/index.d.ts +0 -1207
  467. package/connectors/connect-yousign/node_modules/bun-types/vendor/expect-type/messages.d.ts +0 -395
  468. package/connectors/connect-yousign/node_modules/bun-types/vendor/expect-type/overloads.d.ts +0 -669
  469. package/connectors/connect-yousign/node_modules/bun-types/vendor/expect-type/utils.d.ts +0 -431
  470. package/connectors/connect-yousign/node_modules/bun-types/wasm.d.ts +0 -193
  471. package/connectors/connect-yousign/node_modules/chalk/license +0 -9
  472. package/connectors/connect-yousign/node_modules/chalk/package.json +0 -83
  473. package/connectors/connect-yousign/node_modules/chalk/readme.md +0 -297
  474. package/connectors/connect-yousign/node_modules/chalk/source/index.d.ts +0 -325
  475. package/connectors/connect-yousign/node_modules/chalk/source/index.js +0 -225
  476. package/connectors/connect-yousign/node_modules/chalk/source/utilities.js +0 -33
  477. package/connectors/connect-yousign/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
  478. package/connectors/connect-yousign/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
  479. package/connectors/connect-yousign/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
  480. package/connectors/connect-yousign/node_modules/chalk/source/vendor/supports-color/browser.js +0 -34
  481. package/connectors/connect-yousign/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
  482. package/connectors/connect-yousign/node_modules/chalk/source/vendor/supports-color/index.js +0 -190
  483. package/connectors/connect-yousign/node_modules/commander/LICENSE +0 -22
  484. package/connectors/connect-yousign/node_modules/commander/Readme.md +0 -1157
  485. package/connectors/connect-yousign/node_modules/commander/esm.mjs +0 -16
  486. package/connectors/connect-yousign/node_modules/commander/index.js +0 -24
  487. package/connectors/connect-yousign/node_modules/commander/lib/argument.js +0 -149
  488. package/connectors/connect-yousign/node_modules/commander/lib/command.js +0 -2509
  489. package/connectors/connect-yousign/node_modules/commander/lib/error.js +0 -39
  490. package/connectors/connect-yousign/node_modules/commander/lib/help.js +0 -520
  491. package/connectors/connect-yousign/node_modules/commander/lib/option.js +0 -330
  492. package/connectors/connect-yousign/node_modules/commander/lib/suggestSimilar.js +0 -101
  493. package/connectors/connect-yousign/node_modules/commander/package-support.json +0 -16
  494. package/connectors/connect-yousign/node_modules/commander/package.json +0 -84
  495. package/connectors/connect-yousign/node_modules/commander/typings/esm.d.mts +0 -3
  496. package/connectors/connect-yousign/node_modules/commander/typings/index.d.ts +0 -969
  497. package/connectors/connect-yousign/node_modules/typescript/LICENSE.txt +0 -55
  498. package/connectors/connect-yousign/node_modules/typescript/README.md +0 -50
  499. package/connectors/connect-yousign/node_modules/typescript/SECURITY.md +0 -41
  500. package/connectors/connect-yousign/node_modules/typescript/ThirdPartyNoticeText.txt +0 -193
  501. package/connectors/connect-yousign/node_modules/typescript/bin/tsc +0 -2
  502. package/connectors/connect-yousign/node_modules/typescript/bin/tsserver +0 -2
  503. package/connectors/connect-yousign/node_modules/typescript/lib/_tsc.js +0 -133818
  504. package/connectors/connect-yousign/node_modules/typescript/lib/_tsserver.js +0 -659
  505. package/connectors/connect-yousign/node_modules/typescript/lib/_typingsInstaller.js +0 -222
  506. package/connectors/connect-yousign/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +0 -2122
  507. package/connectors/connect-yousign/node_modules/typescript/lib/de/diagnosticMessages.generated.json +0 -2122
  508. package/connectors/connect-yousign/node_modules/typescript/lib/es/diagnosticMessages.generated.json +0 -2122
  509. package/connectors/connect-yousign/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +0 -2122
  510. package/connectors/connect-yousign/node_modules/typescript/lib/it/diagnosticMessages.generated.json +0 -2122
  511. package/connectors/connect-yousign/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +0 -2122
  512. package/connectors/connect-yousign/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +0 -2122
  513. package/connectors/connect-yousign/node_modules/typescript/lib/lib.d.ts +0 -22
  514. package/connectors/connect-yousign/node_modules/typescript/lib/lib.decorators.d.ts +0 -384
  515. package/connectors/connect-yousign/node_modules/typescript/lib/lib.decorators.legacy.d.ts +0 -22
  516. package/connectors/connect-yousign/node_modules/typescript/lib/lib.dom.asynciterable.d.ts +0 -41
  517. package/connectors/connect-yousign/node_modules/typescript/lib/lib.dom.d.ts +0 -39429
  518. package/connectors/connect-yousign/node_modules/typescript/lib/lib.dom.iterable.d.ts +0 -571
  519. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2015.collection.d.ts +0 -147
  520. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2015.core.d.ts +0 -597
  521. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2015.d.ts +0 -28
  522. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2015.generator.d.ts +0 -77
  523. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2015.iterable.d.ts +0 -605
  524. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2015.promise.d.ts +0 -81
  525. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2015.proxy.d.ts +0 -128
  526. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2015.reflect.d.ts +0 -144
  527. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2015.symbol.d.ts +0 -46
  528. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts +0 -326
  529. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2016.array.include.d.ts +0 -116
  530. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2016.d.ts +0 -21
  531. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2016.full.d.ts +0 -23
  532. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2016.intl.d.ts +0 -31
  533. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts +0 -21
  534. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2017.d.ts +0 -26
  535. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2017.date.d.ts +0 -31
  536. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2017.full.d.ts +0 -23
  537. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2017.intl.d.ts +0 -44
  538. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2017.object.d.ts +0 -49
  539. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts +0 -135
  540. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2017.string.d.ts +0 -45
  541. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts +0 -53
  542. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts +0 -77
  543. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts +0 -53
  544. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2018.d.ts +0 -24
  545. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2018.full.d.ts +0 -24
  546. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2018.intl.d.ts +0 -83
  547. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2018.promise.d.ts +0 -30
  548. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2018.regexp.d.ts +0 -37
  549. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2019.array.d.ts +0 -79
  550. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2019.d.ts +0 -24
  551. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2019.full.d.ts +0 -24
  552. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2019.intl.d.ts +0 -23
  553. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2019.object.d.ts +0 -33
  554. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2019.string.d.ts +0 -37
  555. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2019.symbol.d.ts +0 -24
  556. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2020.bigint.d.ts +0 -765
  557. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2020.d.ts +0 -27
  558. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2020.date.d.ts +0 -42
  559. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2020.full.d.ts +0 -24
  560. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2020.intl.d.ts +0 -474
  561. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2020.number.d.ts +0 -28
  562. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2020.promise.d.ts +0 -47
  563. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts +0 -99
  564. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2020.string.d.ts +0 -44
  565. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts +0 -41
  566. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2021.d.ts +0 -23
  567. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2021.full.d.ts +0 -24
  568. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2021.intl.d.ts +0 -166
  569. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2021.promise.d.ts +0 -48
  570. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2021.string.d.ts +0 -33
  571. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2021.weakref.d.ts +0 -78
  572. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2022.array.d.ts +0 -121
  573. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2022.d.ts +0 -25
  574. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2022.error.d.ts +0 -75
  575. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2022.full.d.ts +0 -24
  576. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2022.intl.d.ts +0 -145
  577. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2022.object.d.ts +0 -26
  578. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2022.regexp.d.ts +0 -39
  579. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2022.string.d.ts +0 -25
  580. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2023.array.d.ts +0 -924
  581. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2023.collection.d.ts +0 -21
  582. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2023.d.ts +0 -22
  583. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2023.full.d.ts +0 -24
  584. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2023.intl.d.ts +0 -56
  585. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts +0 -65
  586. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2024.collection.d.ts +0 -29
  587. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2024.d.ts +0 -26
  588. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2024.full.d.ts +0 -24
  589. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2024.object.d.ts +0 -29
  590. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2024.promise.d.ts +0 -35
  591. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2024.regexp.d.ts +0 -25
  592. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts +0 -68
  593. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es2024.string.d.ts +0 -29
  594. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es5.d.ts +0 -4601
  595. package/connectors/connect-yousign/node_modules/typescript/lib/lib.es6.d.ts +0 -23
  596. package/connectors/connect-yousign/node_modules/typescript/lib/lib.esnext.array.d.ts +0 -35
  597. package/connectors/connect-yousign/node_modules/typescript/lib/lib.esnext.collection.d.ts +0 -96
  598. package/connectors/connect-yousign/node_modules/typescript/lib/lib.esnext.d.ts +0 -29
  599. package/connectors/connect-yousign/node_modules/typescript/lib/lib.esnext.decorators.d.ts +0 -28
  600. package/connectors/connect-yousign/node_modules/typescript/lib/lib.esnext.disposable.d.ts +0 -193
  601. package/connectors/connect-yousign/node_modules/typescript/lib/lib.esnext.error.d.ts +0 -24
  602. package/connectors/connect-yousign/node_modules/typescript/lib/lib.esnext.float16.d.ts +0 -445
  603. package/connectors/connect-yousign/node_modules/typescript/lib/lib.esnext.full.d.ts +0 -24
  604. package/connectors/connect-yousign/node_modules/typescript/lib/lib.esnext.intl.d.ts +0 -21
  605. package/connectors/connect-yousign/node_modules/typescript/lib/lib.esnext.iterator.d.ts +0 -148
  606. package/connectors/connect-yousign/node_modules/typescript/lib/lib.esnext.promise.d.ts +0 -34
  607. package/connectors/connect-yousign/node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts +0 -25
  608. package/connectors/connect-yousign/node_modules/typescript/lib/lib.scripthost.d.ts +0 -322
  609. package/connectors/connect-yousign/node_modules/typescript/lib/lib.webworker.asynciterable.d.ts +0 -41
  610. package/connectors/connect-yousign/node_modules/typescript/lib/lib.webworker.d.ts +0 -13150
  611. package/connectors/connect-yousign/node_modules/typescript/lib/lib.webworker.importscripts.d.ts +0 -23
  612. package/connectors/connect-yousign/node_modules/typescript/lib/lib.webworker.iterable.d.ts +0 -340
  613. package/connectors/connect-yousign/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +0 -2122
  614. package/connectors/connect-yousign/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +0 -2122
  615. package/connectors/connect-yousign/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +0 -2122
  616. package/connectors/connect-yousign/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +0 -2122
  617. package/connectors/connect-yousign/node_modules/typescript/lib/tsc.js +0 -8
  618. package/connectors/connect-yousign/node_modules/typescript/lib/tsserver.js +0 -8
  619. package/connectors/connect-yousign/node_modules/typescript/lib/tsserverlibrary.d.ts +0 -17
  620. package/connectors/connect-yousign/node_modules/typescript/lib/tsserverlibrary.js +0 -21
  621. package/connectors/connect-yousign/node_modules/typescript/lib/typesMap.json +0 -497
  622. package/connectors/connect-yousign/node_modules/typescript/lib/typescript.d.ts +0 -11437
  623. package/connectors/connect-yousign/node_modules/typescript/lib/typescript.js +0 -200276
  624. package/connectors/connect-yousign/node_modules/typescript/lib/typingsInstaller.js +0 -8
  625. package/connectors/connect-yousign/node_modules/typescript/lib/watchGuard.js +0 -53
  626. package/connectors/connect-yousign/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +0 -2122
  627. package/connectors/connect-yousign/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +0 -2122
  628. package/connectors/connect-yousign/node_modules/typescript/package.json +0 -120
  629. package/connectors/connect-yousign/node_modules/undici-types/LICENSE +0 -21
  630. package/connectors/connect-yousign/node_modules/undici-types/README.md +0 -6
  631. package/connectors/connect-yousign/node_modules/undici-types/agent.d.ts +0 -32
  632. package/connectors/connect-yousign/node_modules/undici-types/api.d.ts +0 -43
  633. package/connectors/connect-yousign/node_modules/undici-types/balanced-pool.d.ts +0 -30
  634. package/connectors/connect-yousign/node_modules/undici-types/cache-interceptor.d.ts +0 -173
  635. package/connectors/connect-yousign/node_modules/undici-types/cache.d.ts +0 -36
  636. package/connectors/connect-yousign/node_modules/undici-types/client-stats.d.ts +0 -15
  637. package/connectors/connect-yousign/node_modules/undici-types/client.d.ts +0 -108
  638. package/connectors/connect-yousign/node_modules/undici-types/connector.d.ts +0 -34
  639. package/connectors/connect-yousign/node_modules/undici-types/content-type.d.ts +0 -21
  640. package/connectors/connect-yousign/node_modules/undici-types/cookies.d.ts +0 -30
  641. package/connectors/connect-yousign/node_modules/undici-types/diagnostics-channel.d.ts +0 -74
  642. package/connectors/connect-yousign/node_modules/undici-types/dispatcher.d.ts +0 -276
  643. package/connectors/connect-yousign/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -22
  644. package/connectors/connect-yousign/node_modules/undici-types/errors.d.ts +0 -161
  645. package/connectors/connect-yousign/node_modules/undici-types/eventsource.d.ts +0 -66
  646. package/connectors/connect-yousign/node_modules/undici-types/fetch.d.ts +0 -211
  647. package/connectors/connect-yousign/node_modules/undici-types/formdata.d.ts +0 -108
  648. package/connectors/connect-yousign/node_modules/undici-types/global-dispatcher.d.ts +0 -9
  649. package/connectors/connect-yousign/node_modules/undici-types/global-origin.d.ts +0 -7
  650. package/connectors/connect-yousign/node_modules/undici-types/h2c-client.d.ts +0 -73
  651. package/connectors/connect-yousign/node_modules/undici-types/handlers.d.ts +0 -15
  652. package/connectors/connect-yousign/node_modules/undici-types/header.d.ts +0 -160
  653. package/connectors/connect-yousign/node_modules/undici-types/index.d.ts +0 -88
  654. package/connectors/connect-yousign/node_modules/undici-types/interceptors.d.ts +0 -73
  655. package/connectors/connect-yousign/node_modules/undici-types/mock-agent.d.ts +0 -68
  656. package/connectors/connect-yousign/node_modules/undici-types/mock-call-history.d.ts +0 -111
  657. package/connectors/connect-yousign/node_modules/undici-types/mock-client.d.ts +0 -27
  658. package/connectors/connect-yousign/node_modules/undici-types/mock-errors.d.ts +0 -12
  659. package/connectors/connect-yousign/node_modules/undici-types/mock-interceptor.d.ts +0 -94
  660. package/connectors/connect-yousign/node_modules/undici-types/mock-pool.d.ts +0 -27
  661. package/connectors/connect-yousign/node_modules/undici-types/package.json +0 -55
  662. package/connectors/connect-yousign/node_modules/undici-types/patch.d.ts +0 -29
  663. package/connectors/connect-yousign/node_modules/undici-types/pool-stats.d.ts +0 -19
  664. package/connectors/connect-yousign/node_modules/undici-types/pool.d.ts +0 -41
  665. package/connectors/connect-yousign/node_modules/undici-types/proxy-agent.d.ts +0 -29
  666. package/connectors/connect-yousign/node_modules/undici-types/readable.d.ts +0 -68
  667. package/connectors/connect-yousign/node_modules/undici-types/retry-agent.d.ts +0 -8
  668. package/connectors/connect-yousign/node_modules/undici-types/retry-handler.d.ts +0 -125
  669. package/connectors/connect-yousign/node_modules/undici-types/round-robin-pool.d.ts +0 -41
  670. package/connectors/connect-yousign/node_modules/undici-types/snapshot-agent.d.ts +0 -109
  671. package/connectors/connect-yousign/node_modules/undici-types/util.d.ts +0 -18
  672. package/connectors/connect-yousign/node_modules/undici-types/utility.d.ts +0 -7
  673. package/connectors/connect-yousign/node_modules/undici-types/webidl.d.ts +0 -341
  674. package/connectors/connect-yousign/node_modules/undici-types/websocket.d.ts +0 -186
  675. package/dashboard/dist/assets/index-CSlS3oNV.css +0 -1
  676. package/dashboard/dist/assets/index-sSIkMXYs.js +0 -284
@@ -1,1329 +0,0 @@
1
- /**
2
- * The `fs/promises` API provides asynchronous file system methods that return
3
- * promises.
4
- *
5
- * The promise APIs use the underlying Node.js threadpool to perform file
6
- * system operations off the event loop thread. These operations are not
7
- * synchronized or threadsafe. Care must be taken when performing multiple
8
- * concurrent modifications on the same file or data corruption may occur.
9
- * @since v10.0.0
10
- */
11
- declare module "node:fs/promises" {
12
- import { NonSharedBuffer } from "node:buffer";
13
- import { Abortable } from "node:events";
14
- import { Interface as ReadlineInterface } from "node:readline";
15
- import {
16
- BigIntStats,
17
- BigIntStatsFs,
18
- BufferEncodingOption,
19
- constants as fsConstants,
20
- CopyOptions,
21
- Dir,
22
- Dirent,
23
- EncodingOption,
24
- GlobOptions,
25
- GlobOptionsWithFileTypes,
26
- GlobOptionsWithoutFileTypes,
27
- MakeDirectoryOptions,
28
- Mode,
29
- ObjectEncodingOptions,
30
- OpenDirOptions,
31
- OpenMode,
32
- PathLike,
33
- ReadOptions,
34
- ReadOptionsWithBuffer,
35
- ReadPosition,
36
- ReadStream,
37
- ReadVResult,
38
- RmOptions,
39
- StatFsOptions,
40
- StatOptions,
41
- Stats,
42
- StatsFs,
43
- TimeLike,
44
- WatchEventType,
45
- WatchOptions as _WatchOptions,
46
- WriteStream,
47
- WriteVResult,
48
- } from "node:fs";
49
- import { Stream } from "node:stream";
50
- import { ReadableStream } from "node:stream/web";
51
- interface FileChangeInfo<T extends string | Buffer> {
52
- eventType: WatchEventType;
53
- filename: T | null;
54
- }
55
- interface FlagAndOpenMode {
56
- mode?: Mode | undefined;
57
- flag?: OpenMode | undefined;
58
- }
59
- interface FileReadResult<T extends NodeJS.ArrayBufferView> {
60
- bytesRead: number;
61
- buffer: T;
62
- }
63
- /** @deprecated This interface will be removed in a future version. Use `import { ReadOptionsWithBuffer } from "node:fs"` instead. */
64
- interface FileReadOptions<T extends NodeJS.ArrayBufferView = Buffer> {
65
- /**
66
- * @default `Buffer.alloc(0xffff)`
67
- */
68
- buffer?: T;
69
- /**
70
- * @default 0
71
- */
72
- offset?: number | null;
73
- /**
74
- * @default `buffer.byteLength`
75
- */
76
- length?: number | null;
77
- position?: ReadPosition | null;
78
- }
79
- interface CreateReadStreamOptions extends Abortable {
80
- encoding?: BufferEncoding | null | undefined;
81
- autoClose?: boolean | undefined;
82
- emitClose?: boolean | undefined;
83
- start?: number | undefined;
84
- end?: number | undefined;
85
- highWaterMark?: number | undefined;
86
- }
87
- interface CreateWriteStreamOptions {
88
- encoding?: BufferEncoding | null | undefined;
89
- autoClose?: boolean | undefined;
90
- emitClose?: boolean | undefined;
91
- start?: number | undefined;
92
- highWaterMark?: number | undefined;
93
- flush?: boolean | undefined;
94
- }
95
- interface ReadableWebStreamOptions {
96
- autoClose?: boolean | undefined;
97
- }
98
- // TODO: Add `EventEmitter` close
99
- interface FileHandle {
100
- /**
101
- * The numeric file descriptor managed by the {FileHandle} object.
102
- * @since v10.0.0
103
- */
104
- readonly fd: number;
105
- /**
106
- * Alias of `filehandle.writeFile()`.
107
- *
108
- * When operating on file handles, the mode cannot be changed from what it was set
109
- * to with `fsPromises.open()`. Therefore, this is equivalent to `filehandle.writeFile()`.
110
- * @since v10.0.0
111
- * @return Fulfills with `undefined` upon success.
112
- */
113
- appendFile(
114
- data: string | Uint8Array,
115
- options?:
116
- | (ObjectEncodingOptions & Abortable)
117
- | BufferEncoding
118
- | null,
119
- ): Promise<void>;
120
- /**
121
- * Changes the ownership of the file. A wrapper for [`chown(2)`](http://man7.org/linux/man-pages/man2/chown.2.html).
122
- * @since v10.0.0
123
- * @param uid The file's new owner's user id.
124
- * @param gid The file's new group's group id.
125
- * @return Fulfills with `undefined` upon success.
126
- */
127
- chown(uid: number, gid: number): Promise<void>;
128
- /**
129
- * Modifies the permissions on the file. See [`chmod(2)`](http://man7.org/linux/man-pages/man2/chmod.2.html).
130
- * @since v10.0.0
131
- * @param mode the file mode bit mask.
132
- * @return Fulfills with `undefined` upon success.
133
- */
134
- chmod(mode: Mode): Promise<void>;
135
- /**
136
- * Unlike the 16 KiB default `highWaterMark` for a `stream.Readable`, the stream
137
- * returned by this method has a default `highWaterMark` of 64 KiB.
138
- *
139
- * `options` can include `start` and `end` values to read a range of bytes from
140
- * the file instead of the entire file. Both `start` and `end` are inclusive and
141
- * start counting at 0, allowed values are in the
142
- * \[0, [`Number.MAX_SAFE_INTEGER`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER)\] range. If `start` is
143
- * omitted or `undefined`, `filehandle.createReadStream()` reads sequentially from
144
- * the current file position. The `encoding` can be any one of those accepted by `Buffer`.
145
- *
146
- * If the `FileHandle` points to a character device that only supports blocking
147
- * reads (such as keyboard or sound card), read operations do not finish until data
148
- * is available. This can prevent the process from exiting and the stream from
149
- * closing naturally.
150
- *
151
- * By default, the stream will emit a `'close'` event after it has been
152
- * destroyed. Set the `emitClose` option to `false` to change this behavior.
153
- *
154
- * ```js
155
- * import { open } from 'node:fs/promises';
156
- *
157
- * const fd = await open('/dev/input/event0');
158
- * // Create a stream from some character device.
159
- * const stream = fd.createReadStream();
160
- * setTimeout(() => {
161
- * stream.close(); // This may not close the stream.
162
- * // Artificially marking end-of-stream, as if the underlying resource had
163
- * // indicated end-of-file by itself, allows the stream to close.
164
- * // This does not cancel pending read operations, and if there is such an
165
- * // operation, the process may still not be able to exit successfully
166
- * // until it finishes.
167
- * stream.push(null);
168
- * stream.read(0);
169
- * }, 100);
170
- * ```
171
- *
172
- * If `autoClose` is false, then the file descriptor won't be closed, even if
173
- * there's an error. It is the application's responsibility to close it and make
174
- * sure there's no file descriptor leak. If `autoClose` is set to true (default
175
- * behavior), on `'error'` or `'end'` the file descriptor will be closed
176
- * automatically.
177
- *
178
- * An example to read the last 10 bytes of a file which is 100 bytes long:
179
- *
180
- * ```js
181
- * import { open } from 'node:fs/promises';
182
- *
183
- * const fd = await open('sample.txt');
184
- * fd.createReadStream({ start: 90, end: 99 });
185
- * ```
186
- * @since v16.11.0
187
- */
188
- createReadStream(options?: CreateReadStreamOptions): ReadStream;
189
- /**
190
- * `options` may also include a `start` option to allow writing data at some
191
- * position past the beginning of the file, allowed values are in the
192
- * \[0, [`Number.MAX_SAFE_INTEGER`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER)\] range. Modifying a file rather than
193
- * replacing it may require the `flags` `open` option to be set to `r+` rather than
194
- * the default `r`. The `encoding` can be any one of those accepted by `Buffer`.
195
- *
196
- * If `autoClose` is set to true (default behavior) on `'error'` or `'finish'` the file descriptor will be closed automatically. If `autoClose` is false,
197
- * then the file descriptor won't be closed, even if there's an error.
198
- * It is the application's responsibility to close it and make sure there's no
199
- * file descriptor leak.
200
- *
201
- * By default, the stream will emit a `'close'` event after it has been
202
- * destroyed. Set the `emitClose` option to `false` to change this behavior.
203
- * @since v16.11.0
204
- */
205
- createWriteStream(options?: CreateWriteStreamOptions): WriteStream;
206
- /**
207
- * Forces all currently queued I/O operations associated with the file to the
208
- * operating system's synchronized I/O completion state. Refer to the POSIX [`fdatasync(2)`](http://man7.org/linux/man-pages/man2/fdatasync.2.html) documentation for details.
209
- *
210
- * Unlike `filehandle.sync` this method does not flush modified metadata.
211
- * @since v10.0.0
212
- * @return Fulfills with `undefined` upon success.
213
- */
214
- datasync(): Promise<void>;
215
- /**
216
- * Request that all data for the open file descriptor is flushed to the storage
217
- * device. The specific implementation is operating system and device specific.
218
- * Refer to the POSIX [`fsync(2)`](http://man7.org/linux/man-pages/man2/fsync.2.html) documentation for more detail.
219
- * @since v10.0.0
220
- * @return Fulfills with `undefined` upon success.
221
- */
222
- sync(): Promise<void>;
223
- /**
224
- * Reads data from the file and stores that in the given buffer.
225
- *
226
- * If the file is not modified concurrently, the end-of-file is reached when the
227
- * number of bytes read is zero.
228
- * @since v10.0.0
229
- * @param buffer A buffer that will be filled with the file data read.
230
- * @param offset The location in the buffer at which to start filling.
231
- * @param length The number of bytes to read.
232
- * @param position The location where to begin reading data from the file. If `null`, data will be read from the current file position, and the position will be updated. If `position` is an
233
- * integer, the current file position will remain unchanged.
234
- * @return Fulfills upon success with an object with two properties:
235
- */
236
- read<T extends NodeJS.ArrayBufferView>(
237
- buffer: T,
238
- offset?: number | null,
239
- length?: number | null,
240
- position?: ReadPosition | null,
241
- ): Promise<FileReadResult<T>>;
242
- read<T extends NodeJS.ArrayBufferView>(
243
- buffer: T,
244
- options?: ReadOptions,
245
- ): Promise<FileReadResult<T>>;
246
- read<T extends NodeJS.ArrayBufferView = NonSharedBuffer>(
247
- options?: ReadOptionsWithBuffer<T>,
248
- ): Promise<FileReadResult<T>>;
249
- /**
250
- * Returns a byte-oriented `ReadableStream` that may be used to read the file's
251
- * contents.
252
- *
253
- * An error will be thrown if this method is called more than once or is called
254
- * after the `FileHandle` is closed or closing.
255
- *
256
- * ```js
257
- * import {
258
- * open,
259
- * } from 'node:fs/promises';
260
- *
261
- * const file = await open('./some/file/to/read');
262
- *
263
- * for await (const chunk of file.readableWebStream())
264
- * console.log(chunk);
265
- *
266
- * await file.close();
267
- * ```
268
- *
269
- * While the `ReadableStream` will read the file to completion, it will not
270
- * close the `FileHandle` automatically. User code must still call the`fileHandle.close()` method.
271
- * @since v17.0.0
272
- */
273
- readableWebStream(options?: ReadableWebStreamOptions): ReadableStream;
274
- /**
275
- * Asynchronously reads the entire contents of a file.
276
- *
277
- * If `options` is a string, then it specifies the `encoding`.
278
- *
279
- * The `FileHandle` has to support reading.
280
- *
281
- * If one or more `filehandle.read()` calls are made on a file handle and then a `filehandle.readFile()` call is made, the data will be read from the current
282
- * position till the end of the file. It doesn't always read from the beginning
283
- * of the file.
284
- * @since v10.0.0
285
- * @return Fulfills upon a successful read with the contents of the file. If no encoding is specified (using `options.encoding`), the data is returned as a {Buffer} object. Otherwise, the
286
- * data will be a string.
287
- */
288
- readFile(
289
- options?:
290
- | ({ encoding?: null | undefined } & Abortable)
291
- | null,
292
- ): Promise<NonSharedBuffer>;
293
- /**
294
- * Asynchronously reads the entire contents of a file. The underlying file will _not_ be closed automatically.
295
- * The `FileHandle` must have been opened for reading.
296
- */
297
- readFile(
298
- options:
299
- | ({ encoding: BufferEncoding } & Abortable)
300
- | BufferEncoding,
301
- ): Promise<string>;
302
- /**
303
- * Asynchronously reads the entire contents of a file. The underlying file will _not_ be closed automatically.
304
- * The `FileHandle` must have been opened for reading.
305
- */
306
- readFile(
307
- options?:
308
- | (ObjectEncodingOptions & Abortable)
309
- | BufferEncoding
310
- | null,
311
- ): Promise<string | NonSharedBuffer>;
312
- /**
313
- * Convenience method to create a `readline` interface and stream over the file.
314
- * See `filehandle.createReadStream()` for the options.
315
- *
316
- * ```js
317
- * import { open } from 'node:fs/promises';
318
- *
319
- * const file = await open('./some/file/to/read');
320
- *
321
- * for await (const line of file.readLines()) {
322
- * console.log(line);
323
- * }
324
- * ```
325
- * @since v18.11.0
326
- */
327
- readLines(options?: CreateReadStreamOptions): ReadlineInterface;
328
- /**
329
- * @since v10.0.0
330
- * @return Fulfills with an {fs.Stats} for the file.
331
- */
332
- stat(
333
- opts?: StatOptions & {
334
- bigint?: false | undefined;
335
- },
336
- ): Promise<Stats>;
337
- stat(
338
- opts: StatOptions & {
339
- bigint: true;
340
- },
341
- ): Promise<BigIntStats>;
342
- stat(opts?: StatOptions): Promise<Stats | BigIntStats>;
343
- /**
344
- * Truncates the file.
345
- *
346
- * If the file was larger than `len` bytes, only the first `len` bytes will be
347
- * retained in the file.
348
- *
349
- * The following example retains only the first four bytes of the file:
350
- *
351
- * ```js
352
- * import { open } from 'node:fs/promises';
353
- *
354
- * let filehandle = null;
355
- * try {
356
- * filehandle = await open('temp.txt', 'r+');
357
- * await filehandle.truncate(4);
358
- * } finally {
359
- * await filehandle?.close();
360
- * }
361
- * ```
362
- *
363
- * If the file previously was shorter than `len` bytes, it is extended, and the
364
- * extended part is filled with null bytes (`'\0'`):
365
- *
366
- * If `len` is negative then `0` will be used.
367
- * @since v10.0.0
368
- * @param [len=0]
369
- * @return Fulfills with `undefined` upon success.
370
- */
371
- truncate(len?: number): Promise<void>;
372
- /**
373
- * Change the file system timestamps of the object referenced by the `FileHandle` then fulfills the promise with no arguments upon success.
374
- * @since v10.0.0
375
- */
376
- utimes(atime: TimeLike, mtime: TimeLike): Promise<void>;
377
- /**
378
- * Asynchronously writes data to a file, replacing the file if it already exists. `data` can be a string, a buffer, an
379
- * [AsyncIterable](https://tc39.github.io/ecma262/#sec-asynciterable-interface), or an
380
- * [Iterable](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#The_iterable_protocol) object.
381
- * The promise is fulfilled with no arguments upon success.
382
- *
383
- * If `options` is a string, then it specifies the `encoding`.
384
- *
385
- * The `FileHandle` has to support writing.
386
- *
387
- * It is unsafe to use `filehandle.writeFile()` multiple times on the same file
388
- * without waiting for the promise to be fulfilled (or rejected).
389
- *
390
- * If one or more `filehandle.write()` calls are made on a file handle and then a`filehandle.writeFile()` call is made, the data will be written from the
391
- * current position till the end of the file. It doesn't always write from the
392
- * beginning of the file.
393
- * @since v10.0.0
394
- */
395
- writeFile(
396
- data: string | Uint8Array,
397
- options?:
398
- | (ObjectEncodingOptions & Abortable)
399
- | BufferEncoding
400
- | null,
401
- ): Promise<void>;
402
- /**
403
- * Write `buffer` to the file.
404
- *
405
- * The promise is fulfilled with an object containing two properties:
406
- *
407
- * It is unsafe to use `filehandle.write()` multiple times on the same file
408
- * without waiting for the promise to be fulfilled (or rejected). For this
409
- * scenario, use `filehandle.createWriteStream()`.
410
- *
411
- * On Linux, positional writes do not work when the file is opened in append mode.
412
- * The kernel ignores the position argument and always appends the data to
413
- * the end of the file.
414
- * @since v10.0.0
415
- * @param offset The start position from within `buffer` where the data to write begins.
416
- * @param [length=buffer.byteLength - offset] The number of bytes from `buffer` to write.
417
- * @param [position='null'] The offset from the beginning of the file where the data from `buffer` should be written. If `position` is not a `number`, the data will be written at the current
418
- * position. See the POSIX pwrite(2) documentation for more detail.
419
- */
420
- write<TBuffer extends NodeJS.ArrayBufferView>(
421
- buffer: TBuffer,
422
- offset?: number | null,
423
- length?: number | null,
424
- position?: number | null,
425
- ): Promise<{
426
- bytesWritten: number;
427
- buffer: TBuffer;
428
- }>;
429
- write<TBuffer extends Uint8Array>(
430
- buffer: TBuffer,
431
- options?: { offset?: number; length?: number; position?: number },
432
- ): Promise<{
433
- bytesWritten: number;
434
- buffer: TBuffer;
435
- }>;
436
- write(
437
- data: string,
438
- position?: number | null,
439
- encoding?: BufferEncoding | null,
440
- ): Promise<{
441
- bytesWritten: number;
442
- buffer: string;
443
- }>;
444
- /**
445
- * Write an array of [ArrayBufferView](https://developer.mozilla.org/en-US/docs/Web/API/ArrayBufferView) s to the file.
446
- *
447
- * The promise is fulfilled with an object containing a two properties:
448
- *
449
- * It is unsafe to call `writev()` multiple times on the same file without waiting
450
- * for the promise to be fulfilled (or rejected).
451
- *
452
- * On Linux, positional writes don't work when the file is opened in append mode.
453
- * The kernel ignores the position argument and always appends the data to
454
- * the end of the file.
455
- * @since v12.9.0
456
- * @param [position='null'] The offset from the beginning of the file where the data from `buffers` should be written. If `position` is not a `number`, the data will be written at the current
457
- * position.
458
- */
459
- writev<TBuffers extends readonly NodeJS.ArrayBufferView[]>(
460
- buffers: TBuffers,
461
- position?: number,
462
- ): Promise<WriteVResult<TBuffers>>;
463
- /**
464
- * Read from a file and write to an array of [ArrayBufferView](https://developer.mozilla.org/en-US/docs/Web/API/ArrayBufferView) s
465
- * @since v13.13.0, v12.17.0
466
- * @param [position='null'] The offset from the beginning of the file where the data should be read from. If `position` is not a `number`, the data will be read from the current position.
467
- * @return Fulfills upon success an object containing two properties:
468
- */
469
- readv<TBuffers extends readonly NodeJS.ArrayBufferView[]>(
470
- buffers: TBuffers,
471
- position?: number,
472
- ): Promise<ReadVResult<TBuffers>>;
473
- /**
474
- * Closes the file handle after waiting for any pending operation on the handle to
475
- * complete.
476
- *
477
- * ```js
478
- * import { open } from 'node:fs/promises';
479
- *
480
- * let filehandle;
481
- * try {
482
- * filehandle = await open('thefile.txt', 'r');
483
- * } finally {
484
- * await filehandle?.close();
485
- * }
486
- * ```
487
- * @since v10.0.0
488
- * @return Fulfills with `undefined` upon success.
489
- */
490
- close(): Promise<void>;
491
- /**
492
- * Calls `filehandle.close()` and returns a promise that fulfills when the
493
- * filehandle is closed.
494
- * @since v20.4.0, v18.8.0
495
- */
496
- [Symbol.asyncDispose](): Promise<void>;
497
- }
498
- const constants: typeof fsConstants;
499
- /**
500
- * Tests a user's permissions for the file or directory specified by `path`.
501
- * The `mode` argument is an optional integer that specifies the accessibility
502
- * checks to be performed. `mode` should be either the value `fs.constants.F_OK` or a mask consisting of the bitwise OR of any of `fs.constants.R_OK`, `fs.constants.W_OK`, and `fs.constants.X_OK`
503
- * (e.g.`fs.constants.W_OK | fs.constants.R_OK`). Check `File access constants` for
504
- * possible values of `mode`.
505
- *
506
- * If the accessibility check is successful, the promise is fulfilled with no
507
- * value. If any of the accessibility checks fail, the promise is rejected
508
- * with an [Error](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error) object. The following example checks if the file`/etc/passwd` can be read and
509
- * written by the current process.
510
- *
511
- * ```js
512
- * import { access, constants } from 'node:fs/promises';
513
- *
514
- * try {
515
- * await access('/etc/passwd', constants.R_OK | constants.W_OK);
516
- * console.log('can access');
517
- * } catch {
518
- * console.error('cannot access');
519
- * }
520
- * ```
521
- *
522
- * Using `fsPromises.access()` to check for the accessibility of a file before
523
- * calling `fsPromises.open()` is not recommended. Doing so introduces a race
524
- * condition, since other processes may change the file's state between the two
525
- * calls. Instead, user code should open/read/write the file directly and handle
526
- * the error raised if the file is not accessible.
527
- * @since v10.0.0
528
- * @param [mode=fs.constants.F_OK]
529
- * @return Fulfills with `undefined` upon success.
530
- */
531
- function access(path: PathLike, mode?: number): Promise<void>;
532
- /**
533
- * Asynchronously copies `src` to `dest`. By default, `dest` is overwritten if it
534
- * already exists.
535
- *
536
- * No guarantees are made about the atomicity of the copy operation. If an
537
- * error occurs after the destination file has been opened for writing, an attempt
538
- * will be made to remove the destination.
539
- *
540
- * ```js
541
- * import { copyFile, constants } from 'node:fs/promises';
542
- *
543
- * try {
544
- * await copyFile('source.txt', 'destination.txt');
545
- * console.log('source.txt was copied to destination.txt');
546
- * } catch {
547
- * console.error('The file could not be copied');
548
- * }
549
- *
550
- * // By using COPYFILE_EXCL, the operation will fail if destination.txt exists.
551
- * try {
552
- * await copyFile('source.txt', 'destination.txt', constants.COPYFILE_EXCL);
553
- * console.log('source.txt was copied to destination.txt');
554
- * } catch {
555
- * console.error('The file could not be copied');
556
- * }
557
- * ```
558
- * @since v10.0.0
559
- * @param src source filename to copy
560
- * @param dest destination filename of the copy operation
561
- * @param [mode=0] Optional modifiers that specify the behavior of the copy operation. It is possible to create a mask consisting of the bitwise OR of two or more values (e.g.
562
- * `fs.constants.COPYFILE_EXCL | fs.constants.COPYFILE_FICLONE`)
563
- * @return Fulfills with `undefined` upon success.
564
- */
565
- function copyFile(src: PathLike, dest: PathLike, mode?: number): Promise<void>;
566
- /**
567
- * Opens a `FileHandle`.
568
- *
569
- * Refer to the POSIX [`open(2)`](http://man7.org/linux/man-pages/man2/open.2.html) documentation for more detail.
570
- *
571
- * Some characters (`< > : " / \ | ? *`) are reserved under Windows as documented
572
- * by [Naming Files, Paths, and Namespaces](https://docs.microsoft.com/en-us/windows/desktop/FileIO/naming-a-file). Under NTFS, if the filename contains
573
- * a colon, Node.js will open a file system stream, as described by [this MSDN page](https://docs.microsoft.com/en-us/windows/desktop/FileIO/using-streams).
574
- * @since v10.0.0
575
- * @param [flags='r'] See `support of file system `flags``.
576
- * @param [mode=0o666] Sets the file mode (permission and sticky bits) if the file is created.
577
- * @return Fulfills with a {FileHandle} object.
578
- */
579
- function open(path: PathLike, flags?: string | number, mode?: Mode): Promise<FileHandle>;
580
- /**
581
- * Renames `oldPath` to `newPath`.
582
- * @since v10.0.0
583
- * @return Fulfills with `undefined` upon success.
584
- */
585
- function rename(oldPath: PathLike, newPath: PathLike): Promise<void>;
586
- /**
587
- * Truncates (shortens or extends the length) of the content at `path` to `len` bytes.
588
- * @since v10.0.0
589
- * @param [len=0]
590
- * @return Fulfills with `undefined` upon success.
591
- */
592
- function truncate(path: PathLike, len?: number): Promise<void>;
593
- /**
594
- * Removes the directory identified by `path`.
595
- *
596
- * Using `fsPromises.rmdir()` on a file (not a directory) results in the
597
- * promise being rejected with an `ENOENT` error on Windows and an `ENOTDIR` error on POSIX.
598
- *
599
- * To get a behavior similar to the `rm -rf` Unix command, use `fsPromises.rm()` with options `{ recursive: true, force: true }`.
600
- * @since v10.0.0
601
- * @return Fulfills with `undefined` upon success.
602
- */
603
- function rmdir(path: PathLike): Promise<void>;
604
- /**
605
- * Removes files and directories (modeled on the standard POSIX `rm` utility).
606
- * @since v14.14.0
607
- * @return Fulfills with `undefined` upon success.
608
- */
609
- function rm(path: PathLike, options?: RmOptions): Promise<void>;
610
- /**
611
- * Asynchronously creates a directory.
612
- *
613
- * The optional `options` argument can be an integer specifying `mode` (permission
614
- * and sticky bits), or an object with a `mode` property and a `recursive` property indicating whether parent directories should be created. Calling `fsPromises.mkdir()` when `path` is a directory
615
- * that exists results in a
616
- * rejection only when `recursive` is false.
617
- *
618
- * ```js
619
- * import { mkdir } from 'node:fs/promises';
620
- *
621
- * try {
622
- * const projectFolder = new URL('./test/project/', import.meta.url);
623
- * const createDir = await mkdir(projectFolder, { recursive: true });
624
- *
625
- * console.log(`created ${createDir}`);
626
- * } catch (err) {
627
- * console.error(err.message);
628
- * }
629
- * ```
630
- * @since v10.0.0
631
- * @return Upon success, fulfills with `undefined` if `recursive` is `false`, or the first directory path created if `recursive` is `true`.
632
- */
633
- function mkdir(
634
- path: PathLike,
635
- options: MakeDirectoryOptions & {
636
- recursive: true;
637
- },
638
- ): Promise<string | undefined>;
639
- /**
640
- * Asynchronous mkdir(2) - create a directory.
641
- * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
642
- * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders
643
- * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`.
644
- */
645
- function mkdir(
646
- path: PathLike,
647
- options?:
648
- | Mode
649
- | (MakeDirectoryOptions & {
650
- recursive?: false | undefined;
651
- })
652
- | null,
653
- ): Promise<void>;
654
- /**
655
- * Asynchronous mkdir(2) - create a directory.
656
- * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
657
- * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders
658
- * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`.
659
- */
660
- function mkdir(path: PathLike, options?: Mode | MakeDirectoryOptions | null): Promise<string | undefined>;
661
- /**
662
- * Reads the contents of a directory.
663
- *
664
- * The optional `options` argument can be a string specifying an encoding, or an
665
- * object with an `encoding` property specifying the character encoding to use for
666
- * the filenames. If the `encoding` is set to `'buffer'`, the filenames returned
667
- * will be passed as `Buffer` objects.
668
- *
669
- * If `options.withFileTypes` is set to `true`, the returned array will contain `fs.Dirent` objects.
670
- *
671
- * ```js
672
- * import { readdir } from 'node:fs/promises';
673
- *
674
- * try {
675
- * const files = await readdir(path);
676
- * for (const file of files)
677
- * console.log(file);
678
- * } catch (err) {
679
- * console.error(err);
680
- * }
681
- * ```
682
- * @since v10.0.0
683
- * @return Fulfills with an array of the names of the files in the directory excluding `'.'` and `'..'`.
684
- */
685
- function readdir(
686
- path: PathLike,
687
- options?:
688
- | (ObjectEncodingOptions & {
689
- withFileTypes?: false | undefined;
690
- recursive?: boolean | undefined;
691
- })
692
- | BufferEncoding
693
- | null,
694
- ): Promise<string[]>;
695
- /**
696
- * Asynchronous readdir(3) - read a directory.
697
- * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
698
- * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
699
- */
700
- function readdir(
701
- path: PathLike,
702
- options:
703
- | {
704
- encoding: "buffer";
705
- withFileTypes?: false | undefined;
706
- recursive?: boolean | undefined;
707
- }
708
- | "buffer",
709
- ): Promise<NonSharedBuffer[]>;
710
- /**
711
- * Asynchronous readdir(3) - read a directory.
712
- * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
713
- * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
714
- */
715
- function readdir(
716
- path: PathLike,
717
- options?:
718
- | (ObjectEncodingOptions & {
719
- withFileTypes?: false | undefined;
720
- recursive?: boolean | undefined;
721
- })
722
- | BufferEncoding
723
- | null,
724
- ): Promise<string[] | NonSharedBuffer[]>;
725
- /**
726
- * Asynchronous readdir(3) - read a directory.
727
- * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
728
- * @param options If called with `withFileTypes: true` the result data will be an array of Dirent.
729
- */
730
- function readdir(
731
- path: PathLike,
732
- options: ObjectEncodingOptions & {
733
- withFileTypes: true;
734
- recursive?: boolean | undefined;
735
- },
736
- ): Promise<Dirent[]>;
737
- /**
738
- * Asynchronous readdir(3) - read a directory.
739
- * @param path A path to a directory. If a URL is provided, it must use the `file:` protocol.
740
- * @param options Must include `withFileTypes: true` and `encoding: 'buffer'`.
741
- */
742
- function readdir(
743
- path: PathLike,
744
- options: {
745
- encoding: "buffer";
746
- withFileTypes: true;
747
- recursive?: boolean | undefined;
748
- },
749
- ): Promise<Dirent<NonSharedBuffer>[]>;
750
- /**
751
- * Reads the contents of the symbolic link referred to by `path`. See the POSIX [`readlink(2)`](http://man7.org/linux/man-pages/man2/readlink.2.html) documentation for more detail. The promise is
752
- * fulfilled with the`linkString` upon success.
753
- *
754
- * The optional `options` argument can be a string specifying an encoding, or an
755
- * object with an `encoding` property specifying the character encoding to use for
756
- * the link path returned. If the `encoding` is set to `'buffer'`, the link path
757
- * returned will be passed as a `Buffer` object.
758
- * @since v10.0.0
759
- * @return Fulfills with the `linkString` upon success.
760
- */
761
- function readlink(path: PathLike, options?: ObjectEncodingOptions | BufferEncoding | null): Promise<string>;
762
- /**
763
- * Asynchronous readlink(2) - read value of a symbolic link.
764
- * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
765
- * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
766
- */
767
- function readlink(path: PathLike, options: BufferEncodingOption): Promise<NonSharedBuffer>;
768
- /**
769
- * Asynchronous readlink(2) - read value of a symbolic link.
770
- * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
771
- * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
772
- */
773
- function readlink(
774
- path: PathLike,
775
- options?: ObjectEncodingOptions | string | null,
776
- ): Promise<string | NonSharedBuffer>;
777
- /**
778
- * Creates a symbolic link.
779
- *
780
- * The `type` argument is only used on Windows platforms and can be one of `'dir'`, `'file'`, or `'junction'`. If the `type` argument is not a string, Node.js will
781
- * autodetect `target` type and use `'file'` or `'dir'`. If the `target` does not
782
- * exist, `'file'` will be used. Windows junction points require the destination
783
- * path to be absolute. When using `'junction'`, the `target` argument will
784
- * automatically be normalized to absolute path. Junction points on NTFS volumes
785
- * can only point to directories.
786
- * @since v10.0.0
787
- * @param [type='null']
788
- * @return Fulfills with `undefined` upon success.
789
- */
790
- function symlink(target: PathLike, path: PathLike, type?: string | null): Promise<void>;
791
- /**
792
- * Equivalent to `fsPromises.stat()` unless `path` refers to a symbolic link,
793
- * in which case the link itself is stat-ed, not the file that it refers to.
794
- * Refer to the POSIX [`lstat(2)`](http://man7.org/linux/man-pages/man2/lstat.2.html) document for more detail.
795
- * @since v10.0.0
796
- * @return Fulfills with the {fs.Stats} object for the given symbolic link `path`.
797
- */
798
- function lstat(
799
- path: PathLike,
800
- opts?: StatOptions & {
801
- bigint?: false | undefined;
802
- },
803
- ): Promise<Stats>;
804
- function lstat(
805
- path: PathLike,
806
- opts: StatOptions & {
807
- bigint: true;
808
- },
809
- ): Promise<BigIntStats>;
810
- function lstat(path: PathLike, opts?: StatOptions): Promise<Stats | BigIntStats>;
811
- /**
812
- * @since v10.0.0
813
- * @return Fulfills with the {fs.Stats} object for the given `path`.
814
- */
815
- function stat(
816
- path: PathLike,
817
- opts?: StatOptions & {
818
- bigint?: false | undefined;
819
- },
820
- ): Promise<Stats>;
821
- function stat(
822
- path: PathLike,
823
- opts: StatOptions & {
824
- bigint: true;
825
- },
826
- ): Promise<BigIntStats>;
827
- function stat(path: PathLike, opts?: StatOptions): Promise<Stats | BigIntStats>;
828
- /**
829
- * @since v19.6.0, v18.15.0
830
- * @return Fulfills with the {fs.StatFs} object for the given `path`.
831
- */
832
- function statfs(
833
- path: PathLike,
834
- opts?: StatFsOptions & {
835
- bigint?: false | undefined;
836
- },
837
- ): Promise<StatsFs>;
838
- function statfs(
839
- path: PathLike,
840
- opts: StatFsOptions & {
841
- bigint: true;
842
- },
843
- ): Promise<BigIntStatsFs>;
844
- function statfs(path: PathLike, opts?: StatFsOptions): Promise<StatsFs | BigIntStatsFs>;
845
- /**
846
- * Creates a new link from the `existingPath` to the `newPath`. See the POSIX [`link(2)`](http://man7.org/linux/man-pages/man2/link.2.html) documentation for more detail.
847
- * @since v10.0.0
848
- * @return Fulfills with `undefined` upon success.
849
- */
850
- function link(existingPath: PathLike, newPath: PathLike): Promise<void>;
851
- /**
852
- * If `path` refers to a symbolic link, then the link is removed without affecting
853
- * the file or directory to which that link refers. If the `path` refers to a file
854
- * path that is not a symbolic link, the file is deleted. See the POSIX [`unlink(2)`](http://man7.org/linux/man-pages/man2/unlink.2.html) documentation for more detail.
855
- * @since v10.0.0
856
- * @return Fulfills with `undefined` upon success.
857
- */
858
- function unlink(path: PathLike): Promise<void>;
859
- /**
860
- * Changes the permissions of a file.
861
- * @since v10.0.0
862
- * @return Fulfills with `undefined` upon success.
863
- */
864
- function chmod(path: PathLike, mode: Mode): Promise<void>;
865
- /**
866
- * Changes the permissions on a symbolic link.
867
- *
868
- * This method is only implemented on macOS.
869
- * @deprecated Since v10.0.0
870
- * @return Fulfills with `undefined` upon success.
871
- */
872
- function lchmod(path: PathLike, mode: Mode): Promise<void>;
873
- /**
874
- * Changes the ownership on a symbolic link.
875
- * @since v10.0.0
876
- * @return Fulfills with `undefined` upon success.
877
- */
878
- function lchown(path: PathLike, uid: number, gid: number): Promise<void>;
879
- /**
880
- * Changes the access and modification times of a file in the same way as `fsPromises.utimes()`, with the difference that if the path refers to a
881
- * symbolic link, then the link is not dereferenced: instead, the timestamps of
882
- * the symbolic link itself are changed.
883
- * @since v14.5.0, v12.19.0
884
- * @return Fulfills with `undefined` upon success.
885
- */
886
- function lutimes(path: PathLike, atime: TimeLike, mtime: TimeLike): Promise<void>;
887
- /**
888
- * Changes the ownership of a file.
889
- * @since v10.0.0
890
- * @return Fulfills with `undefined` upon success.
891
- */
892
- function chown(path: PathLike, uid: number, gid: number): Promise<void>;
893
- /**
894
- * Change the file system timestamps of the object referenced by `path`.
895
- *
896
- * The `atime` and `mtime` arguments follow these rules:
897
- *
898
- * * Values can be either numbers representing Unix epoch time, `Date`s, or a
899
- * numeric string like `'123456789.0'`.
900
- * * If the value can not be converted to a number, or is `NaN`, `Infinity`, or `-Infinity`, an `Error` will be thrown.
901
- * @since v10.0.0
902
- * @return Fulfills with `undefined` upon success.
903
- */
904
- function utimes(path: PathLike, atime: TimeLike, mtime: TimeLike): Promise<void>;
905
- /**
906
- * Determines the actual location of `path` using the same semantics as the `fs.realpath.native()` function.
907
- *
908
- * Only paths that can be converted to UTF8 strings are supported.
909
- *
910
- * The optional `options` argument can be a string specifying an encoding, or an
911
- * object with an `encoding` property specifying the character encoding to use for
912
- * the path. If the `encoding` is set to `'buffer'`, the path returned will be
913
- * passed as a `Buffer` object.
914
- *
915
- * On Linux, when Node.js is linked against musl libc, the procfs file system must
916
- * be mounted on `/proc` in order for this function to work. Glibc does not have
917
- * this restriction.
918
- * @since v10.0.0
919
- * @return Fulfills with the resolved path upon success.
920
- */
921
- function realpath(path: PathLike, options?: ObjectEncodingOptions | BufferEncoding | null): Promise<string>;
922
- /**
923
- * Asynchronous realpath(3) - return the canonicalized absolute pathname.
924
- * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
925
- * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
926
- */
927
- function realpath(path: PathLike, options: BufferEncodingOption): Promise<NonSharedBuffer>;
928
- /**
929
- * Asynchronous realpath(3) - return the canonicalized absolute pathname.
930
- * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
931
- * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
932
- */
933
- function realpath(
934
- path: PathLike,
935
- options?: ObjectEncodingOptions | BufferEncoding | null,
936
- ): Promise<string | NonSharedBuffer>;
937
- /**
938
- * Creates a unique temporary directory. A unique directory name is generated by
939
- * appending six random characters to the end of the provided `prefix`. Due to
940
- * platform inconsistencies, avoid trailing `X` characters in `prefix`. Some
941
- * platforms, notably the BSDs, can return more than six random characters, and
942
- * replace trailing `X` characters in `prefix` with random characters.
943
- *
944
- * The optional `options` argument can be a string specifying an encoding, or an
945
- * object with an `encoding` property specifying the character encoding to use.
946
- *
947
- * ```js
948
- * import { mkdtemp } from 'node:fs/promises';
949
- * import { join } from 'node:path';
950
- * import { tmpdir } from 'node:os';
951
- *
952
- * try {
953
- * await mkdtemp(join(tmpdir(), 'foo-'));
954
- * } catch (err) {
955
- * console.error(err);
956
- * }
957
- * ```
958
- *
959
- * The `fsPromises.mkdtemp()` method will append the six randomly selected
960
- * characters directly to the `prefix` string. For instance, given a directory `/tmp`, if the intention is to create a temporary directory _within_ `/tmp`, the `prefix` must end with a trailing
961
- * platform-specific path separator
962
- * (`import { sep } from 'node:path'`).
963
- * @since v10.0.0
964
- * @return Fulfills with a string containing the file system path of the newly created temporary directory.
965
- */
966
- function mkdtemp(prefix: string, options?: ObjectEncodingOptions | BufferEncoding | null): Promise<string>;
967
- /**
968
- * Asynchronously creates a unique temporary directory.
969
- * Generates six random characters to be appended behind a required `prefix` to create a unique temporary directory.
970
- * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
971
- */
972
- function mkdtemp(prefix: string, options: BufferEncodingOption): Promise<NonSharedBuffer>;
973
- /**
974
- * Asynchronously creates a unique temporary directory.
975
- * Generates six random characters to be appended behind a required `prefix` to create a unique temporary directory.
976
- * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
977
- */
978
- function mkdtemp(
979
- prefix: string,
980
- options?: ObjectEncodingOptions | BufferEncoding | null,
981
- ): Promise<string | NonSharedBuffer>;
982
- interface DisposableTempDir extends AsyncDisposable {
983
- /**
984
- * The path of the created directory.
985
- */
986
- path: string;
987
- /**
988
- * A function which removes the created directory.
989
- */
990
- remove(): Promise<void>;
991
- /**
992
- * The same as `remove`.
993
- */
994
- [Symbol.asyncDispose](): Promise<void>;
995
- }
996
- /**
997
- * The resulting Promise holds an async-disposable object whose `path` property
998
- * holds the created directory path. When the object is disposed, the directory
999
- * and its contents will be removed asynchronously if it still exists. If the
1000
- * directory cannot be deleted, disposal will throw an error. The object has an
1001
- * async `remove()` method which will perform the same task.
1002
- *
1003
- * Both this function and the disposal function on the resulting object are
1004
- * async, so it should be used with `await` + `await using` as in
1005
- * `await using dir = await fsPromises.mkdtempDisposable('prefix')`.
1006
- *
1007
- * <!-- TODO: link MDN docs for disposables once https://github.com/mdn/content/pull/38027 lands -->
1008
- *
1009
- * For detailed information, see the documentation of `fsPromises.mkdtemp()`.
1010
- *
1011
- * The optional `options` argument can be a string specifying an encoding, or an
1012
- * object with an `encoding` property specifying the character encoding to use.
1013
- * @since v24.4.0
1014
- */
1015
- function mkdtempDisposable(prefix: PathLike, options?: EncodingOption): Promise<DisposableTempDir>;
1016
- /**
1017
- * Asynchronously writes data to a file, replacing the file if it already exists. `data` can be a string, a buffer, an
1018
- * [AsyncIterable](https://tc39.github.io/ecma262/#sec-asynciterable-interface), or an
1019
- * [Iterable](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#The_iterable_protocol) object.
1020
- *
1021
- * The `encoding` option is ignored if `data` is a buffer.
1022
- *
1023
- * If `options` is a string, then it specifies the encoding.
1024
- *
1025
- * The `mode` option only affects the newly created file. See `fs.open()` for more details.
1026
- *
1027
- * Any specified `FileHandle` has to support writing.
1028
- *
1029
- * It is unsafe to use `fsPromises.writeFile()` multiple times on the same file
1030
- * without waiting for the promise to be settled.
1031
- *
1032
- * Similarly to `fsPromises.readFile` \- `fsPromises.writeFile` is a convenience
1033
- * method that performs multiple `write` calls internally to write the buffer
1034
- * passed to it. For performance sensitive code consider using `fs.createWriteStream()` or `filehandle.createWriteStream()`.
1035
- *
1036
- * It is possible to use an `AbortSignal` to cancel an `fsPromises.writeFile()`.
1037
- * Cancelation is "best effort", and some amount of data is likely still
1038
- * to be written.
1039
- *
1040
- * ```js
1041
- * import { writeFile } from 'node:fs/promises';
1042
- * import { Buffer } from 'node:buffer';
1043
- *
1044
- * try {
1045
- * const controller = new AbortController();
1046
- * const { signal } = controller;
1047
- * const data = new Uint8Array(Buffer.from('Hello Node.js'));
1048
- * const promise = writeFile('message.txt', data, { signal });
1049
- *
1050
- * // Abort the request before the promise settles.
1051
- * controller.abort();
1052
- *
1053
- * await promise;
1054
- * } catch (err) {
1055
- * // When a request is aborted - err is an AbortError
1056
- * console.error(err);
1057
- * }
1058
- * ```
1059
- *
1060
- * Aborting an ongoing request does not abort individual operating
1061
- * system requests but rather the internal buffering `fs.writeFile` performs.
1062
- * @since v10.0.0
1063
- * @param file filename or `FileHandle`
1064
- * @return Fulfills with `undefined` upon success.
1065
- */
1066
- function writeFile(
1067
- file: PathLike | FileHandle,
1068
- data:
1069
- | string
1070
- | NodeJS.ArrayBufferView
1071
- | Iterable<string | NodeJS.ArrayBufferView>
1072
- | AsyncIterable<string | NodeJS.ArrayBufferView>
1073
- | Stream,
1074
- options?:
1075
- | (ObjectEncodingOptions & {
1076
- mode?: Mode | undefined;
1077
- flag?: OpenMode | undefined;
1078
- /**
1079
- * If all data is successfully written to the file, and `flush`
1080
- * is `true`, `filehandle.sync()` is used to flush the data.
1081
- * @default false
1082
- */
1083
- flush?: boolean | undefined;
1084
- } & Abortable)
1085
- | BufferEncoding
1086
- | null,
1087
- ): Promise<void>;
1088
- /**
1089
- * Asynchronously append data to a file, creating the file if it does not yet
1090
- * exist. `data` can be a string or a `Buffer`.
1091
- *
1092
- * If `options` is a string, then it specifies the `encoding`.
1093
- *
1094
- * The `mode` option only affects the newly created file. See `fs.open()` for more details.
1095
- *
1096
- * The `path` may be specified as a `FileHandle` that has been opened
1097
- * for appending (using `fsPromises.open()`).
1098
- * @since v10.0.0
1099
- * @param path filename or {FileHandle}
1100
- * @return Fulfills with `undefined` upon success.
1101
- */
1102
- function appendFile(
1103
- path: PathLike | FileHandle,
1104
- data: string | Uint8Array,
1105
- options?: (ObjectEncodingOptions & FlagAndOpenMode & { flush?: boolean | undefined }) | BufferEncoding | null,
1106
- ): Promise<void>;
1107
- /**
1108
- * Asynchronously reads the entire contents of a file.
1109
- *
1110
- * If no encoding is specified (using `options.encoding`), the data is returned
1111
- * as a `Buffer` object. Otherwise, the data will be a string.
1112
- *
1113
- * If `options` is a string, then it specifies the encoding.
1114
- *
1115
- * When the `path` is a directory, the behavior of `fsPromises.readFile()` is
1116
- * platform-specific. On macOS, Linux, and Windows, the promise will be rejected
1117
- * with an error. On FreeBSD, a representation of the directory's contents will be
1118
- * returned.
1119
- *
1120
- * An example of reading a `package.json` file located in the same directory of the
1121
- * running code:
1122
- *
1123
- * ```js
1124
- * import { readFile } from 'node:fs/promises';
1125
- * try {
1126
- * const filePath = new URL('./package.json', import.meta.url);
1127
- * const contents = await readFile(filePath, { encoding: 'utf8' });
1128
- * console.log(contents);
1129
- * } catch (err) {
1130
- * console.error(err.message);
1131
- * }
1132
- * ```
1133
- *
1134
- * It is possible to abort an ongoing `readFile` using an `AbortSignal`. If a
1135
- * request is aborted the promise returned is rejected with an `AbortError`:
1136
- *
1137
- * ```js
1138
- * import { readFile } from 'node:fs/promises';
1139
- *
1140
- * try {
1141
- * const controller = new AbortController();
1142
- * const { signal } = controller;
1143
- * const promise = readFile(fileName, { signal });
1144
- *
1145
- * // Abort the request before the promise settles.
1146
- * controller.abort();
1147
- *
1148
- * await promise;
1149
- * } catch (err) {
1150
- * // When a request is aborted - err is an AbortError
1151
- * console.error(err);
1152
- * }
1153
- * ```
1154
- *
1155
- * Aborting an ongoing request does not abort individual operating
1156
- * system requests but rather the internal buffering `fs.readFile` performs.
1157
- *
1158
- * Any specified `FileHandle` has to support reading.
1159
- * @since v10.0.0
1160
- * @param path filename or `FileHandle`
1161
- * @return Fulfills with the contents of the file.
1162
- */
1163
- function readFile(
1164
- path: PathLike | FileHandle,
1165
- options?:
1166
- | ({
1167
- encoding?: null | undefined;
1168
- flag?: OpenMode | undefined;
1169
- } & Abortable)
1170
- | null,
1171
- ): Promise<NonSharedBuffer>;
1172
- /**
1173
- * Asynchronously reads the entire contents of a file.
1174
- * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
1175
- * If a `FileHandle` is provided, the underlying file will _not_ be closed automatically.
1176
- * @param options An object that may contain an optional flag.
1177
- * If a flag is not provided, it defaults to `'r'`.
1178
- */
1179
- function readFile(
1180
- path: PathLike | FileHandle,
1181
- options:
1182
- | ({
1183
- encoding: BufferEncoding;
1184
- flag?: OpenMode | undefined;
1185
- } & Abortable)
1186
- | BufferEncoding,
1187
- ): Promise<string>;
1188
- /**
1189
- * Asynchronously reads the entire contents of a file.
1190
- * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
1191
- * If a `FileHandle` is provided, the underlying file will _not_ be closed automatically.
1192
- * @param options An object that may contain an optional flag.
1193
- * If a flag is not provided, it defaults to `'r'`.
1194
- */
1195
- function readFile(
1196
- path: PathLike | FileHandle,
1197
- options?:
1198
- | (
1199
- & ObjectEncodingOptions
1200
- & Abortable
1201
- & {
1202
- flag?: OpenMode | undefined;
1203
- }
1204
- )
1205
- | BufferEncoding
1206
- | null,
1207
- ): Promise<string | NonSharedBuffer>;
1208
- /**
1209
- * Asynchronously open a directory for iterative scanning. See the POSIX [`opendir(3)`](http://man7.org/linux/man-pages/man3/opendir.3.html) documentation for more detail.
1210
- *
1211
- * Creates an `fs.Dir`, which contains all further functions for reading from
1212
- * and cleaning up the directory.
1213
- *
1214
- * The `encoding` option sets the encoding for the `path` while opening the
1215
- * directory and subsequent read operations.
1216
- *
1217
- * Example using async iteration:
1218
- *
1219
- * ```js
1220
- * import { opendir } from 'node:fs/promises';
1221
- *
1222
- * try {
1223
- * const dir = await opendir('./');
1224
- * for await (const dirent of dir)
1225
- * console.log(dirent.name);
1226
- * } catch (err) {
1227
- * console.error(err);
1228
- * }
1229
- * ```
1230
- *
1231
- * When using the async iterator, the `fs.Dir` object will be automatically
1232
- * closed after the iterator exits.
1233
- * @since v12.12.0
1234
- * @return Fulfills with an {fs.Dir}.
1235
- */
1236
- function opendir(path: PathLike, options?: OpenDirOptions): Promise<Dir>;
1237
- interface WatchOptions extends _WatchOptions {
1238
- maxQueue?: number | undefined;
1239
- overflow?: "ignore" | "throw" | undefined;
1240
- }
1241
- interface WatchOptionsWithBufferEncoding extends WatchOptions {
1242
- encoding: "buffer";
1243
- }
1244
- interface WatchOptionsWithStringEncoding extends WatchOptions {
1245
- encoding?: BufferEncoding | undefined;
1246
- }
1247
- /**
1248
- * Returns an async iterator that watches for changes on `filename`, where `filename`is either a file or a directory.
1249
- *
1250
- * ```js
1251
- * import { watch } from 'node:fs/promises';
1252
- *
1253
- * const ac = new AbortController();
1254
- * const { signal } = ac;
1255
- * setTimeout(() => ac.abort(), 10000);
1256
- *
1257
- * (async () => {
1258
- * try {
1259
- * const watcher = watch(__filename, { signal });
1260
- * for await (const event of watcher)
1261
- * console.log(event);
1262
- * } catch (err) {
1263
- * if (err.name === 'AbortError')
1264
- * return;
1265
- * throw err;
1266
- * }
1267
- * })();
1268
- * ```
1269
- *
1270
- * On most platforms, `'rename'` is emitted whenever a filename appears or
1271
- * disappears in the directory.
1272
- *
1273
- * All the `caveats` for `fs.watch()` also apply to `fsPromises.watch()`.
1274
- * @since v15.9.0, v14.18.0
1275
- * @return of objects with the properties:
1276
- */
1277
- function watch(
1278
- filename: PathLike,
1279
- options?: WatchOptionsWithStringEncoding | BufferEncoding,
1280
- ): NodeJS.AsyncIterator<FileChangeInfo<string>>;
1281
- function watch(
1282
- filename: PathLike,
1283
- options: WatchOptionsWithBufferEncoding | "buffer",
1284
- ): NodeJS.AsyncIterator<FileChangeInfo<NonSharedBuffer>>;
1285
- function watch(
1286
- filename: PathLike,
1287
- options: WatchOptions | BufferEncoding | "buffer",
1288
- ): NodeJS.AsyncIterator<FileChangeInfo<string | NonSharedBuffer>>;
1289
- /**
1290
- * Asynchronously copies the entire directory structure from `src` to `dest`,
1291
- * including subdirectories and files.
1292
- *
1293
- * When copying a directory to another directory, globs are not supported and
1294
- * behavior is similar to `cp dir1/ dir2/`.
1295
- * @since v16.7.0
1296
- * @experimental
1297
- * @param src source path to copy.
1298
- * @param dest destination path to copy to.
1299
- * @return Fulfills with `undefined` upon success.
1300
- */
1301
- function cp(source: string | URL, destination: string | URL, opts?: CopyOptions): Promise<void>;
1302
- /**
1303
- * ```js
1304
- * import { glob } from 'node:fs/promises';
1305
- *
1306
- * for await (const entry of glob('*.js'))
1307
- * console.log(entry);
1308
- * ```
1309
- * @since v22.0.0
1310
- * @returns An AsyncIterator that yields the paths of files
1311
- * that match the pattern.
1312
- */
1313
- function glob(pattern: string | readonly string[]): NodeJS.AsyncIterator<string>;
1314
- function glob(
1315
- pattern: string | readonly string[],
1316
- options: GlobOptionsWithFileTypes,
1317
- ): NodeJS.AsyncIterator<Dirent>;
1318
- function glob(
1319
- pattern: string | readonly string[],
1320
- options: GlobOptionsWithoutFileTypes,
1321
- ): NodeJS.AsyncIterator<string>;
1322
- function glob(
1323
- pattern: string | readonly string[],
1324
- options: GlobOptions,
1325
- ): NodeJS.AsyncIterator<Dirent | string>;
1326
- }
1327
- declare module "fs/promises" {
1328
- export * from "node:fs/promises";
1329
- }