coupeeeez 0.0.1

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 (881) hide show
  1. package/LICENSE.MD +7 -0
  2. package/command +18 -0
  3. package/makeApp.ts +17 -0
  4. package/package.json +41 -0
  5. package/stream-api/Message.ts +6 -0
  6. package/stream-api/SSEInjected.ts +3 -0
  7. package/stream-api/SSEServer.ts +37 -0
  8. package/stream-api/SSEServers.ts +36 -0
  9. package/stream-api/StreamApi.ts +39 -0
  10. package/stream-api/app.ts +14 -0
  11. package/stream-api/index.ts +1 -0
  12. package/stream-api/node_modules/.package-lock.json +971 -0
  13. package/stream-api/node_modules/@types/body-parser/LICENSE +21 -0
  14. package/stream-api/node_modules/@types/body-parser/README.md +15 -0
  15. package/stream-api/node_modules/@types/body-parser/index.d.ts +95 -0
  16. package/stream-api/node_modules/@types/body-parser/package.json +64 -0
  17. package/stream-api/node_modules/@types/connect/LICENSE +21 -0
  18. package/stream-api/node_modules/@types/connect/README.md +15 -0
  19. package/stream-api/node_modules/@types/connect/index.d.ts +91 -0
  20. package/stream-api/node_modules/@types/connect/package.json +32 -0
  21. package/stream-api/node_modules/@types/express/LICENSE +21 -0
  22. package/stream-api/node_modules/@types/express/README.md +15 -0
  23. package/stream-api/node_modules/@types/express/index.d.ts +122 -0
  24. package/stream-api/node_modules/@types/express/package.json +45 -0
  25. package/stream-api/node_modules/@types/express-serve-static-core/LICENSE +21 -0
  26. package/stream-api/node_modules/@types/express-serve-static-core/README.md +15 -0
  27. package/stream-api/node_modules/@types/express-serve-static-core/index.d.ts +1244 -0
  28. package/stream-api/node_modules/@types/express-serve-static-core/package.json +51 -0
  29. package/stream-api/node_modules/@types/http-errors/LICENSE +21 -0
  30. package/stream-api/node_modules/@types/http-errors/README.md +15 -0
  31. package/stream-api/node_modules/@types/http-errors/index.d.ts +77 -0
  32. package/stream-api/node_modules/@types/http-errors/package.json +36 -0
  33. package/stream-api/node_modules/@types/mime/LICENSE +21 -0
  34. package/stream-api/node_modules/@types/mime/Mime.d.ts +10 -0
  35. package/stream-api/node_modules/@types/mime/README.md +15 -0
  36. package/stream-api/node_modules/@types/mime/index.d.ts +31 -0
  37. package/stream-api/node_modules/@types/mime/lite.d.ts +7 -0
  38. package/stream-api/node_modules/@types/mime/package.json +30 -0
  39. package/stream-api/node_modules/@types/node/LICENSE +21 -0
  40. package/stream-api/node_modules/@types/node/README.md +15 -0
  41. package/stream-api/node_modules/@types/node/assert/strict.d.ts +111 -0
  42. package/stream-api/node_modules/@types/node/assert.d.ts +1115 -0
  43. package/stream-api/node_modules/@types/node/async_hooks.d.ts +623 -0
  44. package/stream-api/node_modules/@types/node/buffer.buffer.d.ts +472 -0
  45. package/stream-api/node_modules/@types/node/buffer.d.ts +1934 -0
  46. package/stream-api/node_modules/@types/node/child_process.d.ts +1476 -0
  47. package/stream-api/node_modules/@types/node/cluster.d.ts +578 -0
  48. package/stream-api/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
  49. package/stream-api/node_modules/@types/node/console.d.ts +453 -0
  50. package/stream-api/node_modules/@types/node/constants.d.ts +21 -0
  51. package/stream-api/node_modules/@types/node/crypto.d.ts +5417 -0
  52. package/stream-api/node_modules/@types/node/dgram.d.ts +600 -0
  53. package/stream-api/node_modules/@types/node/diagnostics_channel.d.ts +576 -0
  54. package/stream-api/node_modules/@types/node/dns/promises.d.ts +503 -0
  55. package/stream-api/node_modules/@types/node/dns.d.ts +923 -0
  56. package/stream-api/node_modules/@types/node/domain.d.ts +170 -0
  57. package/stream-api/node_modules/@types/node/events.d.ts +976 -0
  58. package/stream-api/node_modules/@types/node/fs/promises.d.ts +1317 -0
  59. package/stream-api/node_modules/@types/node/fs.d.ts +4714 -0
  60. package/stream-api/node_modules/@types/node/globals.d.ts +170 -0
  61. package/stream-api/node_modules/@types/node/globals.typedarray.d.ts +41 -0
  62. package/stream-api/node_modules/@types/node/http.d.ts +2134 -0
  63. package/stream-api/node_modules/@types/node/http2.d.ts +2756 -0
  64. package/stream-api/node_modules/@types/node/https.d.ts +579 -0
  65. package/stream-api/node_modules/@types/node/index.d.ts +101 -0
  66. package/stream-api/node_modules/@types/node/inspector.d.ts +277 -0
  67. package/stream-api/node_modules/@types/node/inspector.generated.d.ts +4233 -0
  68. package/stream-api/node_modules/@types/node/module.d.ts +894 -0
  69. package/stream-api/node_modules/@types/node/net.d.ts +1054 -0
  70. package/stream-api/node_modules/@types/node/os.d.ts +507 -0
  71. package/stream-api/node_modules/@types/node/package.json +155 -0
  72. package/stream-api/node_modules/@types/node/path.d.ts +200 -0
  73. package/stream-api/node_modules/@types/node/perf_hooks.d.ts +982 -0
  74. package/stream-api/node_modules/@types/node/process.d.ts +2069 -0
  75. package/stream-api/node_modules/@types/node/punycode.d.ts +117 -0
  76. package/stream-api/node_modules/@types/node/querystring.d.ts +152 -0
  77. package/stream-api/node_modules/@types/node/readline/promises.d.ts +161 -0
  78. package/stream-api/node_modules/@types/node/readline.d.ts +594 -0
  79. package/stream-api/node_modules/@types/node/repl.d.ts +438 -0
  80. package/stream-api/node_modules/@types/node/sea.d.ts +162 -0
  81. package/stream-api/node_modules/@types/node/sqlite.d.ts +937 -0
  82. package/stream-api/node_modules/@types/node/stream/consumers.d.ts +38 -0
  83. package/stream-api/node_modules/@types/node/stream/promises.d.ts +90 -0
  84. package/stream-api/node_modules/@types/node/stream/web.d.ts +573 -0
  85. package/stream-api/node_modules/@types/node/stream.d.ts +1683 -0
  86. package/stream-api/node_modules/@types/node/string_decoder.d.ts +67 -0
  87. package/stream-api/node_modules/@types/node/test.d.ts +2339 -0
  88. package/stream-api/node_modules/@types/node/timers/promises.d.ts +108 -0
  89. package/stream-api/node_modules/@types/node/timers.d.ts +285 -0
  90. package/stream-api/node_modules/@types/node/tls.d.ts +1269 -0
  91. package/stream-api/node_modules/@types/node/trace_events.d.ts +197 -0
  92. package/stream-api/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +468 -0
  93. package/stream-api/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
  94. package/stream-api/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +36 -0
  95. package/stream-api/node_modules/@types/node/ts5.6/index.d.ts +103 -0
  96. package/stream-api/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
  97. package/stream-api/node_modules/@types/node/ts5.7/index.d.ts +103 -0
  98. package/stream-api/node_modules/@types/node/tty.d.ts +208 -0
  99. package/stream-api/node_modules/@types/node/url.d.ts +1057 -0
  100. package/stream-api/node_modules/@types/node/util.d.ts +2325 -0
  101. package/stream-api/node_modules/@types/node/v8.d.ts +952 -0
  102. package/stream-api/node_modules/@types/node/vm.d.ts +1180 -0
  103. package/stream-api/node_modules/@types/node/wasi.d.ts +202 -0
  104. package/stream-api/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
  105. package/stream-api/node_modules/@types/node/web-globals/crypto.d.ts +32 -0
  106. package/stream-api/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
  107. package/stream-api/node_modules/@types/node/web-globals/events.d.ts +97 -0
  108. package/stream-api/node_modules/@types/node/web-globals/fetch.d.ts +50 -0
  109. package/stream-api/node_modules/@types/node/web-globals/navigator.d.ts +25 -0
  110. package/stream-api/node_modules/@types/node/web-globals/storage.d.ts +24 -0
  111. package/stream-api/node_modules/@types/node/web-globals/streams.d.ts +22 -0
  112. package/stream-api/node_modules/@types/node/worker_threads.d.ts +896 -0
  113. package/stream-api/node_modules/@types/node/zlib.d.ts +681 -0
  114. package/stream-api/node_modules/@types/qs/LICENSE +21 -0
  115. package/stream-api/node_modules/@types/qs/README.md +15 -0
  116. package/stream-api/node_modules/@types/qs/index.d.ts +82 -0
  117. package/stream-api/node_modules/@types/qs/package.json +66 -0
  118. package/stream-api/node_modules/@types/range-parser/LICENSE +21 -0
  119. package/stream-api/node_modules/@types/range-parser/README.md +53 -0
  120. package/stream-api/node_modules/@types/range-parser/index.d.ts +34 -0
  121. package/stream-api/node_modules/@types/range-parser/package.json +25 -0
  122. package/stream-api/node_modules/@types/send/LICENSE +21 -0
  123. package/stream-api/node_modules/@types/send/README.md +15 -0
  124. package/stream-api/node_modules/@types/send/index.d.ts +187 -0
  125. package/stream-api/node_modules/@types/send/package.json +38 -0
  126. package/stream-api/node_modules/@types/serve-static/LICENSE +21 -0
  127. package/stream-api/node_modules/@types/serve-static/README.md +15 -0
  128. package/stream-api/node_modules/@types/serve-static/index.d.ts +107 -0
  129. package/stream-api/node_modules/@types/serve-static/node_modules/@types/send/LICENSE +21 -0
  130. package/stream-api/node_modules/@types/serve-static/node_modules/@types/send/README.md +15 -0
  131. package/stream-api/node_modules/@types/serve-static/node_modules/@types/send/index.d.ts +225 -0
  132. package/stream-api/node_modules/@types/serve-static/node_modules/@types/send/package.json +39 -0
  133. package/stream-api/node_modules/@types/serve-static/package.json +45 -0
  134. package/stream-api/node_modules/accepts/HISTORY.md +250 -0
  135. package/stream-api/node_modules/accepts/LICENSE +23 -0
  136. package/stream-api/node_modules/accepts/README.md +140 -0
  137. package/stream-api/node_modules/accepts/index.js +238 -0
  138. package/stream-api/node_modules/accepts/package.json +47 -0
  139. package/stream-api/node_modules/any-base/LICENSE +21 -0
  140. package/stream-api/node_modules/any-base/README.md +55 -0
  141. package/stream-api/node_modules/any-base/dist/any-base.js +94 -0
  142. package/stream-api/node_modules/any-base/dist/any-base.min.js +1 -0
  143. package/stream-api/node_modules/any-base/index.js +30 -0
  144. package/stream-api/node_modules/any-base/package.json +40 -0
  145. package/stream-api/node_modules/any-base/src/converter.js +80 -0
  146. package/stream-api/node_modules/body-parser/LICENSE +23 -0
  147. package/stream-api/node_modules/body-parser/README.md +494 -0
  148. package/stream-api/node_modules/body-parser/index.js +80 -0
  149. package/stream-api/node_modules/body-parser/lib/read.js +250 -0
  150. package/stream-api/node_modules/body-parser/lib/types/json.js +166 -0
  151. package/stream-api/node_modules/body-parser/lib/types/raw.js +43 -0
  152. package/stream-api/node_modules/body-parser/lib/types/text.js +37 -0
  153. package/stream-api/node_modules/body-parser/lib/types/urlencoded.js +142 -0
  154. package/stream-api/node_modules/body-parser/lib/utils.js +96 -0
  155. package/stream-api/node_modules/body-parser/package.json +52 -0
  156. package/stream-api/node_modules/bytes/History.md +97 -0
  157. package/stream-api/node_modules/bytes/LICENSE +23 -0
  158. package/stream-api/node_modules/bytes/Readme.md +152 -0
  159. package/stream-api/node_modules/bytes/index.js +170 -0
  160. package/stream-api/node_modules/bytes/package.json +42 -0
  161. package/stream-api/node_modules/call-bind-apply-helpers/.eslintrc +17 -0
  162. package/stream-api/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +12 -0
  163. package/stream-api/node_modules/call-bind-apply-helpers/.nycrc +9 -0
  164. package/stream-api/node_modules/call-bind-apply-helpers/CHANGELOG.md +30 -0
  165. package/stream-api/node_modules/call-bind-apply-helpers/LICENSE +21 -0
  166. package/stream-api/node_modules/call-bind-apply-helpers/README.md +62 -0
  167. package/stream-api/node_modules/call-bind-apply-helpers/actualApply.d.ts +1 -0
  168. package/stream-api/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
  169. package/stream-api/node_modules/call-bind-apply-helpers/applyBind.d.ts +19 -0
  170. package/stream-api/node_modules/call-bind-apply-helpers/applyBind.js +10 -0
  171. package/stream-api/node_modules/call-bind-apply-helpers/functionApply.d.ts +1 -0
  172. package/stream-api/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
  173. package/stream-api/node_modules/call-bind-apply-helpers/functionCall.d.ts +1 -0
  174. package/stream-api/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
  175. package/stream-api/node_modules/call-bind-apply-helpers/index.d.ts +64 -0
  176. package/stream-api/node_modules/call-bind-apply-helpers/index.js +15 -0
  177. package/stream-api/node_modules/call-bind-apply-helpers/package.json +85 -0
  178. package/stream-api/node_modules/call-bind-apply-helpers/reflectApply.d.ts +3 -0
  179. package/stream-api/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
  180. package/stream-api/node_modules/call-bind-apply-helpers/test/index.js +63 -0
  181. package/stream-api/node_modules/call-bind-apply-helpers/tsconfig.json +9 -0
  182. package/stream-api/node_modules/call-bound/.eslintrc +13 -0
  183. package/stream-api/node_modules/call-bound/.github/FUNDING.yml +12 -0
  184. package/stream-api/node_modules/call-bound/.nycrc +9 -0
  185. package/stream-api/node_modules/call-bound/CHANGELOG.md +42 -0
  186. package/stream-api/node_modules/call-bound/LICENSE +21 -0
  187. package/stream-api/node_modules/call-bound/README.md +53 -0
  188. package/stream-api/node_modules/call-bound/index.d.ts +94 -0
  189. package/stream-api/node_modules/call-bound/index.js +19 -0
  190. package/stream-api/node_modules/call-bound/package.json +99 -0
  191. package/stream-api/node_modules/call-bound/test/index.js +61 -0
  192. package/stream-api/node_modules/call-bound/tsconfig.json +10 -0
  193. package/stream-api/node_modules/commander/LICENSE +22 -0
  194. package/stream-api/node_modules/commander/Readme.md +1159 -0
  195. package/stream-api/node_modules/commander/esm.mjs +16 -0
  196. package/stream-api/node_modules/commander/index.js +24 -0
  197. package/stream-api/node_modules/commander/lib/argument.js +150 -0
  198. package/stream-api/node_modules/commander/lib/command.js +2777 -0
  199. package/stream-api/node_modules/commander/lib/error.js +39 -0
  200. package/stream-api/node_modules/commander/lib/help.js +747 -0
  201. package/stream-api/node_modules/commander/lib/option.js +380 -0
  202. package/stream-api/node_modules/commander/lib/suggestSimilar.js +101 -0
  203. package/stream-api/node_modules/commander/package-support.json +16 -0
  204. package/stream-api/node_modules/commander/package.json +82 -0
  205. package/stream-api/node_modules/commander/typings/esm.d.mts +3 -0
  206. package/stream-api/node_modules/commander/typings/index.d.ts +1113 -0
  207. package/stream-api/node_modules/content-disposition/HISTORY.md +72 -0
  208. package/stream-api/node_modules/content-disposition/LICENSE +22 -0
  209. package/stream-api/node_modules/content-disposition/README.md +142 -0
  210. package/stream-api/node_modules/content-disposition/index.js +458 -0
  211. package/stream-api/node_modules/content-disposition/package.json +43 -0
  212. package/stream-api/node_modules/content-type/HISTORY.md +29 -0
  213. package/stream-api/node_modules/content-type/LICENSE +22 -0
  214. package/stream-api/node_modules/content-type/README.md +94 -0
  215. package/stream-api/node_modules/content-type/index.js +225 -0
  216. package/stream-api/node_modules/content-type/package.json +42 -0
  217. package/stream-api/node_modules/cookie/LICENSE +24 -0
  218. package/stream-api/node_modules/cookie/README.md +317 -0
  219. package/stream-api/node_modules/cookie/SECURITY.md +25 -0
  220. package/stream-api/node_modules/cookie/index.js +335 -0
  221. package/stream-api/node_modules/cookie/package.json +44 -0
  222. package/stream-api/node_modules/cookie-signature/History.md +70 -0
  223. package/stream-api/node_modules/cookie-signature/LICENSE +22 -0
  224. package/stream-api/node_modules/cookie-signature/Readme.md +23 -0
  225. package/stream-api/node_modules/cookie-signature/index.js +47 -0
  226. package/stream-api/node_modules/cookie-signature/package.json +24 -0
  227. package/stream-api/node_modules/debug/LICENSE +20 -0
  228. package/stream-api/node_modules/debug/README.md +481 -0
  229. package/stream-api/node_modules/debug/package.json +64 -0
  230. package/stream-api/node_modules/debug/src/browser.js +272 -0
  231. package/stream-api/node_modules/debug/src/common.js +292 -0
  232. package/stream-api/node_modules/debug/src/index.js +10 -0
  233. package/stream-api/node_modules/debug/src/node.js +263 -0
  234. package/stream-api/node_modules/depd/History.md +103 -0
  235. package/stream-api/node_modules/depd/LICENSE +22 -0
  236. package/stream-api/node_modules/depd/Readme.md +280 -0
  237. package/stream-api/node_modules/depd/index.js +538 -0
  238. package/stream-api/node_modules/depd/lib/browser/index.js +77 -0
  239. package/stream-api/node_modules/depd/package.json +45 -0
  240. package/stream-api/node_modules/dunder-proto/.eslintrc +5 -0
  241. package/stream-api/node_modules/dunder-proto/.github/FUNDING.yml +12 -0
  242. package/stream-api/node_modules/dunder-proto/.nycrc +13 -0
  243. package/stream-api/node_modules/dunder-proto/CHANGELOG.md +24 -0
  244. package/stream-api/node_modules/dunder-proto/LICENSE +21 -0
  245. package/stream-api/node_modules/dunder-proto/README.md +54 -0
  246. package/stream-api/node_modules/dunder-proto/get.d.ts +5 -0
  247. package/stream-api/node_modules/dunder-proto/get.js +30 -0
  248. package/stream-api/node_modules/dunder-proto/package.json +76 -0
  249. package/stream-api/node_modules/dunder-proto/set.d.ts +5 -0
  250. package/stream-api/node_modules/dunder-proto/set.js +35 -0
  251. package/stream-api/node_modules/dunder-proto/test/get.js +34 -0
  252. package/stream-api/node_modules/dunder-proto/test/index.js +4 -0
  253. package/stream-api/node_modules/dunder-proto/test/set.js +50 -0
  254. package/stream-api/node_modules/dunder-proto/tsconfig.json +9 -0
  255. package/stream-api/node_modules/ee-first/LICENSE +22 -0
  256. package/stream-api/node_modules/ee-first/README.md +80 -0
  257. package/stream-api/node_modules/ee-first/index.js +95 -0
  258. package/stream-api/node_modules/ee-first/package.json +29 -0
  259. package/stream-api/node_modules/encodeurl/LICENSE +22 -0
  260. package/stream-api/node_modules/encodeurl/README.md +109 -0
  261. package/stream-api/node_modules/encodeurl/index.js +60 -0
  262. package/stream-api/node_modules/encodeurl/package.json +40 -0
  263. package/stream-api/node_modules/es-define-property/.eslintrc +13 -0
  264. package/stream-api/node_modules/es-define-property/.github/FUNDING.yml +12 -0
  265. package/stream-api/node_modules/es-define-property/.nycrc +9 -0
  266. package/stream-api/node_modules/es-define-property/CHANGELOG.md +29 -0
  267. package/stream-api/node_modules/es-define-property/LICENSE +21 -0
  268. package/stream-api/node_modules/es-define-property/README.md +49 -0
  269. package/stream-api/node_modules/es-define-property/index.d.ts +3 -0
  270. package/stream-api/node_modules/es-define-property/index.js +14 -0
  271. package/stream-api/node_modules/es-define-property/package.json +81 -0
  272. package/stream-api/node_modules/es-define-property/test/index.js +56 -0
  273. package/stream-api/node_modules/es-define-property/tsconfig.json +10 -0
  274. package/stream-api/node_modules/es-errors/.eslintrc +5 -0
  275. package/stream-api/node_modules/es-errors/.github/FUNDING.yml +12 -0
  276. package/stream-api/node_modules/es-errors/CHANGELOG.md +40 -0
  277. package/stream-api/node_modules/es-errors/LICENSE +21 -0
  278. package/stream-api/node_modules/es-errors/README.md +55 -0
  279. package/stream-api/node_modules/es-errors/eval.d.ts +3 -0
  280. package/stream-api/node_modules/es-errors/eval.js +4 -0
  281. package/stream-api/node_modules/es-errors/index.d.ts +3 -0
  282. package/stream-api/node_modules/es-errors/index.js +4 -0
  283. package/stream-api/node_modules/es-errors/package.json +80 -0
  284. package/stream-api/node_modules/es-errors/range.d.ts +3 -0
  285. package/stream-api/node_modules/es-errors/range.js +4 -0
  286. package/stream-api/node_modules/es-errors/ref.d.ts +3 -0
  287. package/stream-api/node_modules/es-errors/ref.js +4 -0
  288. package/stream-api/node_modules/es-errors/syntax.d.ts +3 -0
  289. package/stream-api/node_modules/es-errors/syntax.js +4 -0
  290. package/stream-api/node_modules/es-errors/test/index.js +19 -0
  291. package/stream-api/node_modules/es-errors/tsconfig.json +49 -0
  292. package/stream-api/node_modules/es-errors/type.d.ts +3 -0
  293. package/stream-api/node_modules/es-errors/type.js +4 -0
  294. package/stream-api/node_modules/es-errors/uri.d.ts +3 -0
  295. package/stream-api/node_modules/es-errors/uri.js +4 -0
  296. package/stream-api/node_modules/es-object-atoms/.eslintrc +16 -0
  297. package/stream-api/node_modules/es-object-atoms/.github/FUNDING.yml +12 -0
  298. package/stream-api/node_modules/es-object-atoms/CHANGELOG.md +37 -0
  299. package/stream-api/node_modules/es-object-atoms/LICENSE +21 -0
  300. package/stream-api/node_modules/es-object-atoms/README.md +63 -0
  301. package/stream-api/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +3 -0
  302. package/stream-api/node_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
  303. package/stream-api/node_modules/es-object-atoms/ToObject.d.ts +7 -0
  304. package/stream-api/node_modules/es-object-atoms/ToObject.js +10 -0
  305. package/stream-api/node_modules/es-object-atoms/index.d.ts +3 -0
  306. package/stream-api/node_modules/es-object-atoms/index.js +4 -0
  307. package/stream-api/node_modules/es-object-atoms/isObject.d.ts +3 -0
  308. package/stream-api/node_modules/es-object-atoms/isObject.js +6 -0
  309. package/stream-api/node_modules/es-object-atoms/package.json +80 -0
  310. package/stream-api/node_modules/es-object-atoms/test/index.js +38 -0
  311. package/stream-api/node_modules/es-object-atoms/tsconfig.json +6 -0
  312. package/stream-api/node_modules/escape-html/LICENSE +24 -0
  313. package/stream-api/node_modules/escape-html/Readme.md +43 -0
  314. package/stream-api/node_modules/escape-html/index.js +78 -0
  315. package/stream-api/node_modules/escape-html/package.json +24 -0
  316. package/stream-api/node_modules/etag/HISTORY.md +83 -0
  317. package/stream-api/node_modules/etag/LICENSE +22 -0
  318. package/stream-api/node_modules/etag/README.md +159 -0
  319. package/stream-api/node_modules/etag/index.js +131 -0
  320. package/stream-api/node_modules/etag/package.json +47 -0
  321. package/stream-api/node_modules/express/History.md +3858 -0
  322. package/stream-api/node_modules/express/LICENSE +24 -0
  323. package/stream-api/node_modules/express/Readme.md +266 -0
  324. package/stream-api/node_modules/express/index.js +11 -0
  325. package/stream-api/node_modules/express/lib/application.js +631 -0
  326. package/stream-api/node_modules/express/lib/express.js +81 -0
  327. package/stream-api/node_modules/express/lib/request.js +515 -0
  328. package/stream-api/node_modules/express/lib/response.js +1039 -0
  329. package/stream-api/node_modules/express/lib/utils.js +269 -0
  330. package/stream-api/node_modules/express/lib/view.js +205 -0
  331. package/stream-api/node_modules/express/package.json +98 -0
  332. package/stream-api/node_modules/finalhandler/HISTORY.md +233 -0
  333. package/stream-api/node_modules/finalhandler/LICENSE +22 -0
  334. package/stream-api/node_modules/finalhandler/README.md +147 -0
  335. package/stream-api/node_modules/finalhandler/index.js +293 -0
  336. package/stream-api/node_modules/finalhandler/package.json +43 -0
  337. package/stream-api/node_modules/forwarded/HISTORY.md +21 -0
  338. package/stream-api/node_modules/forwarded/LICENSE +22 -0
  339. package/stream-api/node_modules/forwarded/README.md +57 -0
  340. package/stream-api/node_modules/forwarded/index.js +90 -0
  341. package/stream-api/node_modules/forwarded/package.json +45 -0
  342. package/stream-api/node_modules/fresh/HISTORY.md +80 -0
  343. package/stream-api/node_modules/fresh/LICENSE +23 -0
  344. package/stream-api/node_modules/fresh/README.md +117 -0
  345. package/stream-api/node_modules/fresh/index.js +136 -0
  346. package/stream-api/node_modules/fresh/package.json +46 -0
  347. package/stream-api/node_modules/function-bind/.eslintrc +21 -0
  348. package/stream-api/node_modules/function-bind/.github/FUNDING.yml +12 -0
  349. package/stream-api/node_modules/function-bind/.github/SECURITY.md +3 -0
  350. package/stream-api/node_modules/function-bind/.nycrc +13 -0
  351. package/stream-api/node_modules/function-bind/CHANGELOG.md +136 -0
  352. package/stream-api/node_modules/function-bind/LICENSE +20 -0
  353. package/stream-api/node_modules/function-bind/README.md +46 -0
  354. package/stream-api/node_modules/function-bind/implementation.js +84 -0
  355. package/stream-api/node_modules/function-bind/index.js +5 -0
  356. package/stream-api/node_modules/function-bind/package.json +87 -0
  357. package/stream-api/node_modules/function-bind/test/.eslintrc +9 -0
  358. package/stream-api/node_modules/function-bind/test/index.js +252 -0
  359. package/stream-api/node_modules/get-intrinsic/.eslintrc +42 -0
  360. package/stream-api/node_modules/get-intrinsic/.github/FUNDING.yml +12 -0
  361. package/stream-api/node_modules/get-intrinsic/.nycrc +9 -0
  362. package/stream-api/node_modules/get-intrinsic/CHANGELOG.md +186 -0
  363. package/stream-api/node_modules/get-intrinsic/LICENSE +21 -0
  364. package/stream-api/node_modules/get-intrinsic/README.md +71 -0
  365. package/stream-api/node_modules/get-intrinsic/index.js +378 -0
  366. package/stream-api/node_modules/get-intrinsic/package.json +97 -0
  367. package/stream-api/node_modules/get-intrinsic/test/GetIntrinsic.js +274 -0
  368. package/stream-api/node_modules/get-proto/.eslintrc +10 -0
  369. package/stream-api/node_modules/get-proto/.github/FUNDING.yml +12 -0
  370. package/stream-api/node_modules/get-proto/.nycrc +9 -0
  371. package/stream-api/node_modules/get-proto/CHANGELOG.md +21 -0
  372. package/stream-api/node_modules/get-proto/LICENSE +21 -0
  373. package/stream-api/node_modules/get-proto/Object.getPrototypeOf.d.ts +5 -0
  374. package/stream-api/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
  375. package/stream-api/node_modules/get-proto/README.md +50 -0
  376. package/stream-api/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +3 -0
  377. package/stream-api/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
  378. package/stream-api/node_modules/get-proto/index.d.ts +5 -0
  379. package/stream-api/node_modules/get-proto/index.js +27 -0
  380. package/stream-api/node_modules/get-proto/package.json +81 -0
  381. package/stream-api/node_modules/get-proto/test/index.js +68 -0
  382. package/stream-api/node_modules/get-proto/tsconfig.json +9 -0
  383. package/stream-api/node_modules/gopd/.eslintrc +16 -0
  384. package/stream-api/node_modules/gopd/.github/FUNDING.yml +12 -0
  385. package/stream-api/node_modules/gopd/CHANGELOG.md +45 -0
  386. package/stream-api/node_modules/gopd/LICENSE +21 -0
  387. package/stream-api/node_modules/gopd/README.md +40 -0
  388. package/stream-api/node_modules/gopd/gOPD.d.ts +1 -0
  389. package/stream-api/node_modules/gopd/gOPD.js +4 -0
  390. package/stream-api/node_modules/gopd/index.d.ts +5 -0
  391. package/stream-api/node_modules/gopd/index.js +15 -0
  392. package/stream-api/node_modules/gopd/package.json +77 -0
  393. package/stream-api/node_modules/gopd/test/index.js +36 -0
  394. package/stream-api/node_modules/gopd/tsconfig.json +9 -0
  395. package/stream-api/node_modules/has-symbols/.eslintrc +11 -0
  396. package/stream-api/node_modules/has-symbols/.github/FUNDING.yml +12 -0
  397. package/stream-api/node_modules/has-symbols/.nycrc +9 -0
  398. package/stream-api/node_modules/has-symbols/CHANGELOG.md +91 -0
  399. package/stream-api/node_modules/has-symbols/LICENSE +21 -0
  400. package/stream-api/node_modules/has-symbols/README.md +46 -0
  401. package/stream-api/node_modules/has-symbols/index.d.ts +3 -0
  402. package/stream-api/node_modules/has-symbols/index.js +14 -0
  403. package/stream-api/node_modules/has-symbols/package.json +111 -0
  404. package/stream-api/node_modules/has-symbols/shams.d.ts +3 -0
  405. package/stream-api/node_modules/has-symbols/shams.js +45 -0
  406. package/stream-api/node_modules/has-symbols/test/index.js +22 -0
  407. package/stream-api/node_modules/has-symbols/test/shams/core-js.js +29 -0
  408. package/stream-api/node_modules/has-symbols/test/shams/get-own-property-symbols.js +29 -0
  409. package/stream-api/node_modules/has-symbols/test/tests.js +58 -0
  410. package/stream-api/node_modules/has-symbols/tsconfig.json +10 -0
  411. package/stream-api/node_modules/hasown/.eslintrc +5 -0
  412. package/stream-api/node_modules/hasown/.github/FUNDING.yml +12 -0
  413. package/stream-api/node_modules/hasown/.nycrc +13 -0
  414. package/stream-api/node_modules/hasown/CHANGELOG.md +40 -0
  415. package/stream-api/node_modules/hasown/LICENSE +21 -0
  416. package/stream-api/node_modules/hasown/README.md +40 -0
  417. package/stream-api/node_modules/hasown/index.d.ts +3 -0
  418. package/stream-api/node_modules/hasown/index.js +8 -0
  419. package/stream-api/node_modules/hasown/package.json +92 -0
  420. package/stream-api/node_modules/hasown/tsconfig.json +6 -0
  421. package/stream-api/node_modules/http-errors/HISTORY.md +186 -0
  422. package/stream-api/node_modules/http-errors/LICENSE +23 -0
  423. package/stream-api/node_modules/http-errors/README.md +169 -0
  424. package/stream-api/node_modules/http-errors/index.js +290 -0
  425. package/stream-api/node_modules/http-errors/package.json +54 -0
  426. package/stream-api/node_modules/iconv-lite/Changelog.md +236 -0
  427. package/stream-api/node_modules/iconv-lite/LICENSE +21 -0
  428. package/stream-api/node_modules/iconv-lite/README.md +138 -0
  429. package/stream-api/node_modules/iconv-lite/encodings/dbcs-codec.js +532 -0
  430. package/stream-api/node_modules/iconv-lite/encodings/dbcs-data.js +185 -0
  431. package/stream-api/node_modules/iconv-lite/encodings/index.js +23 -0
  432. package/stream-api/node_modules/iconv-lite/encodings/internal.js +218 -0
  433. package/stream-api/node_modules/iconv-lite/encodings/sbcs-codec.js +75 -0
  434. package/stream-api/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
  435. package/stream-api/node_modules/iconv-lite/encodings/sbcs-data.js +178 -0
  436. package/stream-api/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
  437. package/stream-api/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
  438. package/stream-api/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
  439. package/stream-api/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
  440. package/stream-api/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
  441. package/stream-api/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
  442. package/stream-api/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
  443. package/stream-api/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
  444. package/stream-api/node_modules/iconv-lite/encodings/utf16.js +187 -0
  445. package/stream-api/node_modules/iconv-lite/encodings/utf32.js +307 -0
  446. package/stream-api/node_modules/iconv-lite/encodings/utf7.js +283 -0
  447. package/stream-api/node_modules/iconv-lite/lib/bom-handling.js +48 -0
  448. package/stream-api/node_modules/iconv-lite/lib/helpers/merge-exports.js +13 -0
  449. package/stream-api/node_modules/iconv-lite/lib/index.d.ts +41 -0
  450. package/stream-api/node_modules/iconv-lite/lib/index.js +183 -0
  451. package/stream-api/node_modules/iconv-lite/lib/streams.js +105 -0
  452. package/stream-api/node_modules/iconv-lite/package.json +59 -0
  453. package/stream-api/node_modules/inherits/LICENSE +16 -0
  454. package/stream-api/node_modules/inherits/README.md +42 -0
  455. package/stream-api/node_modules/inherits/inherits.js +9 -0
  456. package/stream-api/node_modules/inherits/inherits_browser.js +27 -0
  457. package/stream-api/node_modules/inherits/package.json +29 -0
  458. package/stream-api/node_modules/ipaddr.js/LICENSE +19 -0
  459. package/stream-api/node_modules/ipaddr.js/README.md +233 -0
  460. package/stream-api/node_modules/ipaddr.js/ipaddr.min.js +1 -0
  461. package/stream-api/node_modules/ipaddr.js/lib/ipaddr.js +673 -0
  462. package/stream-api/node_modules/ipaddr.js/lib/ipaddr.js.d.ts +68 -0
  463. package/stream-api/node_modules/ipaddr.js/package.json +35 -0
  464. package/stream-api/node_modules/is-promise/LICENSE +19 -0
  465. package/stream-api/node_modules/is-promise/index.d.ts +2 -0
  466. package/stream-api/node_modules/is-promise/index.js +6 -0
  467. package/stream-api/node_modules/is-promise/index.mjs +3 -0
  468. package/stream-api/node_modules/is-promise/package.json +30 -0
  469. package/stream-api/node_modules/is-promise/readme.md +33 -0
  470. package/stream-api/node_modules/math-intrinsics/.eslintrc +16 -0
  471. package/stream-api/node_modules/math-intrinsics/.github/FUNDING.yml +12 -0
  472. package/stream-api/node_modules/math-intrinsics/CHANGELOG.md +24 -0
  473. package/stream-api/node_modules/math-intrinsics/LICENSE +21 -0
  474. package/stream-api/node_modules/math-intrinsics/README.md +50 -0
  475. package/stream-api/node_modules/math-intrinsics/abs.d.ts +1 -0
  476. package/stream-api/node_modules/math-intrinsics/abs.js +4 -0
  477. package/stream-api/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +3 -0
  478. package/stream-api/node_modules/math-intrinsics/constants/maxArrayLength.js +4 -0
  479. package/stream-api/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +3 -0
  480. package/stream-api/node_modules/math-intrinsics/constants/maxSafeInteger.js +5 -0
  481. package/stream-api/node_modules/math-intrinsics/constants/maxValue.d.ts +3 -0
  482. package/stream-api/node_modules/math-intrinsics/constants/maxValue.js +5 -0
  483. package/stream-api/node_modules/math-intrinsics/floor.d.ts +1 -0
  484. package/stream-api/node_modules/math-intrinsics/floor.js +4 -0
  485. package/stream-api/node_modules/math-intrinsics/isFinite.d.ts +3 -0
  486. package/stream-api/node_modules/math-intrinsics/isFinite.js +12 -0
  487. package/stream-api/node_modules/math-intrinsics/isInteger.d.ts +3 -0
  488. package/stream-api/node_modules/math-intrinsics/isInteger.js +16 -0
  489. package/stream-api/node_modules/math-intrinsics/isNaN.d.ts +1 -0
  490. package/stream-api/node_modules/math-intrinsics/isNaN.js +6 -0
  491. package/stream-api/node_modules/math-intrinsics/isNegativeZero.d.ts +3 -0
  492. package/stream-api/node_modules/math-intrinsics/isNegativeZero.js +6 -0
  493. package/stream-api/node_modules/math-intrinsics/max.d.ts +1 -0
  494. package/stream-api/node_modules/math-intrinsics/max.js +4 -0
  495. package/stream-api/node_modules/math-intrinsics/min.d.ts +1 -0
  496. package/stream-api/node_modules/math-intrinsics/min.js +4 -0
  497. package/stream-api/node_modules/math-intrinsics/mod.d.ts +3 -0
  498. package/stream-api/node_modules/math-intrinsics/mod.js +9 -0
  499. package/stream-api/node_modules/math-intrinsics/package.json +86 -0
  500. package/stream-api/node_modules/math-intrinsics/pow.d.ts +1 -0
  501. package/stream-api/node_modules/math-intrinsics/pow.js +4 -0
  502. package/stream-api/node_modules/math-intrinsics/round.d.ts +1 -0
  503. package/stream-api/node_modules/math-intrinsics/round.js +4 -0
  504. package/stream-api/node_modules/math-intrinsics/sign.d.ts +3 -0
  505. package/stream-api/node_modules/math-intrinsics/sign.js +11 -0
  506. package/stream-api/node_modules/math-intrinsics/test/index.js +192 -0
  507. package/stream-api/node_modules/math-intrinsics/tsconfig.json +3 -0
  508. package/stream-api/node_modules/media-typer/HISTORY.md +50 -0
  509. package/stream-api/node_modules/media-typer/LICENSE +22 -0
  510. package/stream-api/node_modules/media-typer/README.md +93 -0
  511. package/stream-api/node_modules/media-typer/index.js +143 -0
  512. package/stream-api/node_modules/media-typer/package.json +33 -0
  513. package/stream-api/node_modules/merge-descriptors/index.d.ts +11 -0
  514. package/stream-api/node_modules/merge-descriptors/index.js +26 -0
  515. package/stream-api/node_modules/merge-descriptors/license +11 -0
  516. package/stream-api/node_modules/merge-descriptors/package.json +50 -0
  517. package/stream-api/node_modules/merge-descriptors/readme.md +55 -0
  518. package/stream-api/node_modules/mime-db/HISTORY.md +541 -0
  519. package/stream-api/node_modules/mime-db/LICENSE +23 -0
  520. package/stream-api/node_modules/mime-db/README.md +109 -0
  521. package/stream-api/node_modules/mime-db/db.json +9342 -0
  522. package/stream-api/node_modules/mime-db/index.js +12 -0
  523. package/stream-api/node_modules/mime-db/package.json +56 -0
  524. package/stream-api/node_modules/mime-types/HISTORY.md +428 -0
  525. package/stream-api/node_modules/mime-types/LICENSE +23 -0
  526. package/stream-api/node_modules/mime-types/README.md +126 -0
  527. package/stream-api/node_modules/mime-types/index.js +211 -0
  528. package/stream-api/node_modules/mime-types/mimeScore.js +57 -0
  529. package/stream-api/node_modules/mime-types/package.json +49 -0
  530. package/stream-api/node_modules/ms/index.js +162 -0
  531. package/stream-api/node_modules/ms/license.md +21 -0
  532. package/stream-api/node_modules/ms/package.json +38 -0
  533. package/stream-api/node_modules/ms/readme.md +59 -0
  534. package/stream-api/node_modules/negotiator/HISTORY.md +114 -0
  535. package/stream-api/node_modules/negotiator/LICENSE +24 -0
  536. package/stream-api/node_modules/negotiator/README.md +212 -0
  537. package/stream-api/node_modules/negotiator/index.js +83 -0
  538. package/stream-api/node_modules/negotiator/lib/charset.js +169 -0
  539. package/stream-api/node_modules/negotiator/lib/encoding.js +205 -0
  540. package/stream-api/node_modules/negotiator/lib/language.js +179 -0
  541. package/stream-api/node_modules/negotiator/lib/mediaType.js +294 -0
  542. package/stream-api/node_modules/negotiator/package.json +43 -0
  543. package/stream-api/node_modules/object-inspect/.eslintrc +53 -0
  544. package/stream-api/node_modules/object-inspect/.github/FUNDING.yml +12 -0
  545. package/stream-api/node_modules/object-inspect/.nycrc +13 -0
  546. package/stream-api/node_modules/object-inspect/CHANGELOG.md +424 -0
  547. package/stream-api/node_modules/object-inspect/LICENSE +21 -0
  548. package/stream-api/node_modules/object-inspect/example/all.js +23 -0
  549. package/stream-api/node_modules/object-inspect/example/circular.js +6 -0
  550. package/stream-api/node_modules/object-inspect/example/fn.js +5 -0
  551. package/stream-api/node_modules/object-inspect/example/inspect.js +10 -0
  552. package/stream-api/node_modules/object-inspect/index.js +544 -0
  553. package/stream-api/node_modules/object-inspect/package-support.json +20 -0
  554. package/stream-api/node_modules/object-inspect/package.json +105 -0
  555. package/stream-api/node_modules/object-inspect/readme.markdown +84 -0
  556. package/stream-api/node_modules/object-inspect/test/bigint.js +58 -0
  557. package/stream-api/node_modules/object-inspect/test/browser/dom.js +15 -0
  558. package/stream-api/node_modules/object-inspect/test/circular.js +16 -0
  559. package/stream-api/node_modules/object-inspect/test/deep.js +12 -0
  560. package/stream-api/node_modules/object-inspect/test/element.js +53 -0
  561. package/stream-api/node_modules/object-inspect/test/err.js +48 -0
  562. package/stream-api/node_modules/object-inspect/test/fakes.js +29 -0
  563. package/stream-api/node_modules/object-inspect/test/fn.js +76 -0
  564. package/stream-api/node_modules/object-inspect/test/global.js +17 -0
  565. package/stream-api/node_modules/object-inspect/test/has.js +15 -0
  566. package/stream-api/node_modules/object-inspect/test/holes.js +15 -0
  567. package/stream-api/node_modules/object-inspect/test/indent-option.js +271 -0
  568. package/stream-api/node_modules/object-inspect/test/inspect.js +139 -0
  569. package/stream-api/node_modules/object-inspect/test/lowbyte.js +12 -0
  570. package/stream-api/node_modules/object-inspect/test/number.js +58 -0
  571. package/stream-api/node_modules/object-inspect/test/quoteStyle.js +26 -0
  572. package/stream-api/node_modules/object-inspect/test/toStringTag.js +40 -0
  573. package/stream-api/node_modules/object-inspect/test/undef.js +12 -0
  574. package/stream-api/node_modules/object-inspect/test/values.js +261 -0
  575. package/stream-api/node_modules/object-inspect/test-core-js.js +26 -0
  576. package/stream-api/node_modules/object-inspect/util.inspect.js +1 -0
  577. package/stream-api/node_modules/on-finished/HISTORY.md +98 -0
  578. package/stream-api/node_modules/on-finished/LICENSE +23 -0
  579. package/stream-api/node_modules/on-finished/README.md +162 -0
  580. package/stream-api/node_modules/on-finished/index.js +234 -0
  581. package/stream-api/node_modules/on-finished/package.json +39 -0
  582. package/stream-api/node_modules/once/LICENSE +15 -0
  583. package/stream-api/node_modules/once/README.md +79 -0
  584. package/stream-api/node_modules/once/once.js +42 -0
  585. package/stream-api/node_modules/once/package.json +33 -0
  586. package/stream-api/node_modules/parseurl/HISTORY.md +58 -0
  587. package/stream-api/node_modules/parseurl/LICENSE +24 -0
  588. package/stream-api/node_modules/parseurl/README.md +133 -0
  589. package/stream-api/node_modules/parseurl/index.js +158 -0
  590. package/stream-api/node_modules/parseurl/package.json +40 -0
  591. package/stream-api/node_modules/path-to-regexp/LICENSE +21 -0
  592. package/stream-api/node_modules/path-to-regexp/Readme.md +224 -0
  593. package/stream-api/node_modules/path-to-regexp/dist/index.d.ts +144 -0
  594. package/stream-api/node_modules/path-to-regexp/dist/index.js +409 -0
  595. package/stream-api/node_modules/path-to-regexp/dist/index.js.map +1 -0
  596. package/stream-api/node_modules/path-to-regexp/package.json +64 -0
  597. package/stream-api/node_modules/proxy-addr/HISTORY.md +161 -0
  598. package/stream-api/node_modules/proxy-addr/LICENSE +22 -0
  599. package/stream-api/node_modules/proxy-addr/README.md +139 -0
  600. package/stream-api/node_modules/proxy-addr/index.js +327 -0
  601. package/stream-api/node_modules/proxy-addr/package.json +47 -0
  602. package/stream-api/node_modules/qs/.editorconfig +46 -0
  603. package/stream-api/node_modules/qs/.eslintrc +39 -0
  604. package/stream-api/node_modules/qs/.github/FUNDING.yml +12 -0
  605. package/stream-api/node_modules/qs/.nycrc +13 -0
  606. package/stream-api/node_modules/qs/CHANGELOG.md +622 -0
  607. package/stream-api/node_modules/qs/LICENSE.md +29 -0
  608. package/stream-api/node_modules/qs/README.md +733 -0
  609. package/stream-api/node_modules/qs/dist/qs.js +141 -0
  610. package/stream-api/node_modules/qs/lib/formats.js +23 -0
  611. package/stream-api/node_modules/qs/lib/index.js +11 -0
  612. package/stream-api/node_modules/qs/lib/parse.js +328 -0
  613. package/stream-api/node_modules/qs/lib/stringify.js +356 -0
  614. package/stream-api/node_modules/qs/lib/utils.js +268 -0
  615. package/stream-api/node_modules/qs/package.json +93 -0
  616. package/stream-api/node_modules/qs/test/empty-keys-cases.js +267 -0
  617. package/stream-api/node_modules/qs/test/parse.js +1276 -0
  618. package/stream-api/node_modules/qs/test/stringify.js +1306 -0
  619. package/stream-api/node_modules/qs/test/utils.js +262 -0
  620. package/stream-api/node_modules/range-parser/HISTORY.md +56 -0
  621. package/stream-api/node_modules/range-parser/LICENSE +23 -0
  622. package/stream-api/node_modules/range-parser/README.md +84 -0
  623. package/stream-api/node_modules/range-parser/index.js +162 -0
  624. package/stream-api/node_modules/range-parser/package.json +44 -0
  625. package/stream-api/node_modules/raw-body/LICENSE +22 -0
  626. package/stream-api/node_modules/raw-body/README.md +223 -0
  627. package/stream-api/node_modules/raw-body/index.d.ts +85 -0
  628. package/stream-api/node_modules/raw-body/index.js +336 -0
  629. package/stream-api/node_modules/raw-body/package.json +46 -0
  630. package/stream-api/node_modules/router/HISTORY.md +228 -0
  631. package/stream-api/node_modules/router/LICENSE +23 -0
  632. package/stream-api/node_modules/router/README.md +416 -0
  633. package/stream-api/node_modules/router/index.js +748 -0
  634. package/stream-api/node_modules/router/lib/layer.js +247 -0
  635. package/stream-api/node_modules/router/lib/route.js +242 -0
  636. package/stream-api/node_modules/router/package.json +44 -0
  637. package/stream-api/node_modules/safer-buffer/LICENSE +21 -0
  638. package/stream-api/node_modules/safer-buffer/Porting-Buffer.md +268 -0
  639. package/stream-api/node_modules/safer-buffer/Readme.md +156 -0
  640. package/stream-api/node_modules/safer-buffer/dangerous.js +58 -0
  641. package/stream-api/node_modules/safer-buffer/package.json +34 -0
  642. package/stream-api/node_modules/safer-buffer/safer.js +77 -0
  643. package/stream-api/node_modules/safer-buffer/tests.js +406 -0
  644. package/stream-api/node_modules/send/HISTORY.md +580 -0
  645. package/stream-api/node_modules/send/LICENSE +23 -0
  646. package/stream-api/node_modules/send/README.md +317 -0
  647. package/stream-api/node_modules/send/index.js +997 -0
  648. package/stream-api/node_modules/send/package.json +60 -0
  649. package/stream-api/node_modules/serve-static/HISTORY.md +516 -0
  650. package/stream-api/node_modules/serve-static/LICENSE +25 -0
  651. package/stream-api/node_modules/serve-static/README.md +253 -0
  652. package/stream-api/node_modules/serve-static/index.js +208 -0
  653. package/stream-api/node_modules/serve-static/package.json +41 -0
  654. package/stream-api/node_modules/setprototypeof/LICENSE +13 -0
  655. package/stream-api/node_modules/setprototypeof/README.md +31 -0
  656. package/stream-api/node_modules/setprototypeof/index.d.ts +2 -0
  657. package/stream-api/node_modules/setprototypeof/index.js +17 -0
  658. package/stream-api/node_modules/setprototypeof/package.json +38 -0
  659. package/stream-api/node_modules/setprototypeof/test/index.js +24 -0
  660. package/stream-api/node_modules/short-uuid/.codeclimate.yml +21 -0
  661. package/stream-api/node_modules/short-uuid/.csslintrc +2 -0
  662. package/stream-api/node_modules/short-uuid/.editorconfig +11 -0
  663. package/stream-api/node_modules/short-uuid/.eslintrc.js +15 -0
  664. package/stream-api/node_modules/short-uuid/.github/workflows/node.js.yml +31 -0
  665. package/stream-api/node_modules/short-uuid/.nyc_output/3a60ecc2-69fc-4d0a-81dd-ad79b6071e14.json +1 -0
  666. package/stream-api/node_modules/short-uuid/.nyc_output/3f261446-c11a-4630-b995-4f5dbc1395ef.json +1 -0
  667. package/stream-api/node_modules/short-uuid/.nyc_output/processinfo/3a60ecc2-69fc-4d0a-81dd-ad79b6071e14.json +1 -0
  668. package/stream-api/node_modules/short-uuid/.nyc_output/processinfo/3f261446-c11a-4630-b995-4f5dbc1395ef.json +1 -0
  669. package/stream-api/node_modules/short-uuid/.nyc_output/processinfo/index.json +1 -0
  670. package/stream-api/node_modules/short-uuid/CHANGELOG.md +237 -0
  671. package/stream-api/node_modules/short-uuid/LICENSE +21 -0
  672. package/stream-api/node_modules/short-uuid/README.md +128 -0
  673. package/stream-api/node_modules/short-uuid/index.d.ts +51 -0
  674. package/stream-api/node_modules/short-uuid/index.js +157 -0
  675. package/stream-api/node_modules/short-uuid/package.json +41 -0
  676. package/stream-api/node_modules/short-uuid/revisions.md +193 -0
  677. package/stream-api/node_modules/short-uuid/test/index.js +339 -0
  678. package/stream-api/node_modules/short-uuid/test/uuid25examples.js +74 -0
  679. package/stream-api/node_modules/side-channel/.editorconfig +9 -0
  680. package/stream-api/node_modules/side-channel/.eslintrc +12 -0
  681. package/stream-api/node_modules/side-channel/.github/FUNDING.yml +12 -0
  682. package/stream-api/node_modules/side-channel/.nycrc +13 -0
  683. package/stream-api/node_modules/side-channel/CHANGELOG.md +110 -0
  684. package/stream-api/node_modules/side-channel/LICENSE +21 -0
  685. package/stream-api/node_modules/side-channel/README.md +61 -0
  686. package/stream-api/node_modules/side-channel/index.d.ts +14 -0
  687. package/stream-api/node_modules/side-channel/index.js +43 -0
  688. package/stream-api/node_modules/side-channel/package.json +85 -0
  689. package/stream-api/node_modules/side-channel/test/index.js +104 -0
  690. package/stream-api/node_modules/side-channel/tsconfig.json +9 -0
  691. package/stream-api/node_modules/side-channel-list/.editorconfig +9 -0
  692. package/stream-api/node_modules/side-channel-list/.eslintrc +11 -0
  693. package/stream-api/node_modules/side-channel-list/.github/FUNDING.yml +12 -0
  694. package/stream-api/node_modules/side-channel-list/.nycrc +13 -0
  695. package/stream-api/node_modules/side-channel-list/CHANGELOG.md +15 -0
  696. package/stream-api/node_modules/side-channel-list/LICENSE +21 -0
  697. package/stream-api/node_modules/side-channel-list/README.md +62 -0
  698. package/stream-api/node_modules/side-channel-list/index.d.ts +13 -0
  699. package/stream-api/node_modules/side-channel-list/index.js +113 -0
  700. package/stream-api/node_modules/side-channel-list/list.d.ts +14 -0
  701. package/stream-api/node_modules/side-channel-list/package.json +77 -0
  702. package/stream-api/node_modules/side-channel-list/test/index.js +104 -0
  703. package/stream-api/node_modules/side-channel-list/tsconfig.json +9 -0
  704. package/stream-api/node_modules/side-channel-map/.editorconfig +9 -0
  705. package/stream-api/node_modules/side-channel-map/.eslintrc +11 -0
  706. package/stream-api/node_modules/side-channel-map/.github/FUNDING.yml +12 -0
  707. package/stream-api/node_modules/side-channel-map/.nycrc +13 -0
  708. package/stream-api/node_modules/side-channel-map/CHANGELOG.md +22 -0
  709. package/stream-api/node_modules/side-channel-map/LICENSE +21 -0
  710. package/stream-api/node_modules/side-channel-map/README.md +62 -0
  711. package/stream-api/node_modules/side-channel-map/index.d.ts +15 -0
  712. package/stream-api/node_modules/side-channel-map/index.js +68 -0
  713. package/stream-api/node_modules/side-channel-map/package.json +80 -0
  714. package/stream-api/node_modules/side-channel-map/test/index.js +114 -0
  715. package/stream-api/node_modules/side-channel-map/tsconfig.json +9 -0
  716. package/stream-api/node_modules/side-channel-weakmap/.editorconfig +9 -0
  717. package/stream-api/node_modules/side-channel-weakmap/.eslintrc +12 -0
  718. package/stream-api/node_modules/side-channel-weakmap/.github/FUNDING.yml +12 -0
  719. package/stream-api/node_modules/side-channel-weakmap/.nycrc +13 -0
  720. package/stream-api/node_modules/side-channel-weakmap/CHANGELOG.md +28 -0
  721. package/stream-api/node_modules/side-channel-weakmap/LICENSE +21 -0
  722. package/stream-api/node_modules/side-channel-weakmap/README.md +62 -0
  723. package/stream-api/node_modules/side-channel-weakmap/index.d.ts +15 -0
  724. package/stream-api/node_modules/side-channel-weakmap/index.js +84 -0
  725. package/stream-api/node_modules/side-channel-weakmap/package.json +87 -0
  726. package/stream-api/node_modules/side-channel-weakmap/test/index.js +114 -0
  727. package/stream-api/node_modules/side-channel-weakmap/tsconfig.json +9 -0
  728. package/stream-api/node_modules/statuses/HISTORY.md +87 -0
  729. package/stream-api/node_modules/statuses/LICENSE +23 -0
  730. package/stream-api/node_modules/statuses/README.md +139 -0
  731. package/stream-api/node_modules/statuses/codes.json +65 -0
  732. package/stream-api/node_modules/statuses/index.js +146 -0
  733. package/stream-api/node_modules/statuses/package.json +49 -0
  734. package/stream-api/node_modules/toidentifier/HISTORY.md +9 -0
  735. package/stream-api/node_modules/toidentifier/LICENSE +21 -0
  736. package/stream-api/node_modules/toidentifier/README.md +61 -0
  737. package/stream-api/node_modules/toidentifier/index.js +32 -0
  738. package/stream-api/node_modules/toidentifier/package.json +38 -0
  739. package/stream-api/node_modules/type-is/HISTORY.md +292 -0
  740. package/stream-api/node_modules/type-is/LICENSE +23 -0
  741. package/stream-api/node_modules/type-is/README.md +198 -0
  742. package/stream-api/node_modules/type-is/index.js +250 -0
  743. package/stream-api/node_modules/type-is/package.json +47 -0
  744. package/stream-api/node_modules/undici-types/LICENSE +21 -0
  745. package/stream-api/node_modules/undici-types/README.md +6 -0
  746. package/stream-api/node_modules/undici-types/agent.d.ts +32 -0
  747. package/stream-api/node_modules/undici-types/api.d.ts +43 -0
  748. package/stream-api/node_modules/undici-types/balanced-pool.d.ts +29 -0
  749. package/stream-api/node_modules/undici-types/cache-interceptor.d.ts +172 -0
  750. package/stream-api/node_modules/undici-types/cache.d.ts +36 -0
  751. package/stream-api/node_modules/undici-types/client-stats.d.ts +15 -0
  752. package/stream-api/node_modules/undici-types/client.d.ts +108 -0
  753. package/stream-api/node_modules/undici-types/connector.d.ts +34 -0
  754. package/stream-api/node_modules/undici-types/content-type.d.ts +21 -0
  755. package/stream-api/node_modules/undici-types/cookies.d.ts +30 -0
  756. package/stream-api/node_modules/undici-types/diagnostics-channel.d.ts +74 -0
  757. package/stream-api/node_modules/undici-types/dispatcher.d.ts +276 -0
  758. package/stream-api/node_modules/undici-types/env-http-proxy-agent.d.ts +22 -0
  759. package/stream-api/node_modules/undici-types/errors.d.ts +161 -0
  760. package/stream-api/node_modules/undici-types/eventsource.d.ts +66 -0
  761. package/stream-api/node_modules/undici-types/fetch.d.ts +211 -0
  762. package/stream-api/node_modules/undici-types/formdata.d.ts +108 -0
  763. package/stream-api/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  764. package/stream-api/node_modules/undici-types/global-origin.d.ts +7 -0
  765. package/stream-api/node_modules/undici-types/h2c-client.d.ts +73 -0
  766. package/stream-api/node_modules/undici-types/handlers.d.ts +15 -0
  767. package/stream-api/node_modules/undici-types/header.d.ts +160 -0
  768. package/stream-api/node_modules/undici-types/index.d.ts +80 -0
  769. package/stream-api/node_modules/undici-types/interceptors.d.ts +39 -0
  770. package/stream-api/node_modules/undici-types/mock-agent.d.ts +68 -0
  771. package/stream-api/node_modules/undici-types/mock-call-history.d.ts +111 -0
  772. package/stream-api/node_modules/undici-types/mock-client.d.ts +27 -0
  773. package/stream-api/node_modules/undici-types/mock-errors.d.ts +12 -0
  774. package/stream-api/node_modules/undici-types/mock-interceptor.d.ts +94 -0
  775. package/stream-api/node_modules/undici-types/mock-pool.d.ts +27 -0
  776. package/stream-api/node_modules/undici-types/package.json +55 -0
  777. package/stream-api/node_modules/undici-types/patch.d.ts +29 -0
  778. package/stream-api/node_modules/undici-types/pool-stats.d.ts +19 -0
  779. package/stream-api/node_modules/undici-types/pool.d.ts +41 -0
  780. package/stream-api/node_modules/undici-types/proxy-agent.d.ts +29 -0
  781. package/stream-api/node_modules/undici-types/readable.d.ts +68 -0
  782. package/stream-api/node_modules/undici-types/retry-agent.d.ts +8 -0
  783. package/stream-api/node_modules/undici-types/retry-handler.d.ts +125 -0
  784. package/stream-api/node_modules/undici-types/snapshot-agent.d.ts +109 -0
  785. package/stream-api/node_modules/undici-types/util.d.ts +18 -0
  786. package/stream-api/node_modules/undici-types/utility.d.ts +7 -0
  787. package/stream-api/node_modules/undici-types/webidl.d.ts +341 -0
  788. package/stream-api/node_modules/undici-types/websocket.d.ts +186 -0
  789. package/stream-api/node_modules/unpipe/HISTORY.md +4 -0
  790. package/stream-api/node_modules/unpipe/LICENSE +22 -0
  791. package/stream-api/node_modules/unpipe/README.md +43 -0
  792. package/stream-api/node_modules/unpipe/index.js +69 -0
  793. package/stream-api/node_modules/unpipe/package.json +27 -0
  794. package/stream-api/node_modules/uuid/CHANGELOG.md +274 -0
  795. package/stream-api/node_modules/uuid/CONTRIBUTING.md +18 -0
  796. package/stream-api/node_modules/uuid/LICENSE.md +9 -0
  797. package/stream-api/node_modules/uuid/README.md +466 -0
  798. package/stream-api/node_modules/uuid/dist/bin/uuid +2 -0
  799. package/stream-api/node_modules/uuid/dist/commonjs-browser/index.js +79 -0
  800. package/stream-api/node_modules/uuid/dist/commonjs-browser/md5.js +223 -0
  801. package/stream-api/node_modules/uuid/dist/commonjs-browser/native.js +11 -0
  802. package/stream-api/node_modules/uuid/dist/commonjs-browser/nil.js +8 -0
  803. package/stream-api/node_modules/uuid/dist/commonjs-browser/parse.js +45 -0
  804. package/stream-api/node_modules/uuid/dist/commonjs-browser/regex.js +8 -0
  805. package/stream-api/node_modules/uuid/dist/commonjs-browser/rng.js +25 -0
  806. package/stream-api/node_modules/uuid/dist/commonjs-browser/sha1.js +104 -0
  807. package/stream-api/node_modules/uuid/dist/commonjs-browser/stringify.js +44 -0
  808. package/stream-api/node_modules/uuid/dist/commonjs-browser/v1.js +107 -0
  809. package/stream-api/node_modules/uuid/dist/commonjs-browser/v3.js +16 -0
  810. package/stream-api/node_modules/uuid/dist/commonjs-browser/v35.js +80 -0
  811. package/stream-api/node_modules/uuid/dist/commonjs-browser/v4.js +43 -0
  812. package/stream-api/node_modules/uuid/dist/commonjs-browser/v5.js +16 -0
  813. package/stream-api/node_modules/uuid/dist/commonjs-browser/validate.js +17 -0
  814. package/stream-api/node_modules/uuid/dist/commonjs-browser/version.js +21 -0
  815. package/stream-api/node_modules/uuid/dist/esm-browser/index.js +9 -0
  816. package/stream-api/node_modules/uuid/dist/esm-browser/md5.js +215 -0
  817. package/stream-api/node_modules/uuid/dist/esm-browser/native.js +4 -0
  818. package/stream-api/node_modules/uuid/dist/esm-browser/nil.js +1 -0
  819. package/stream-api/node_modules/uuid/dist/esm-browser/parse.js +35 -0
  820. package/stream-api/node_modules/uuid/dist/esm-browser/regex.js +1 -0
  821. package/stream-api/node_modules/uuid/dist/esm-browser/rng.js +18 -0
  822. package/stream-api/node_modules/uuid/dist/esm-browser/sha1.js +96 -0
  823. package/stream-api/node_modules/uuid/dist/esm-browser/stringify.js +33 -0
  824. package/stream-api/node_modules/uuid/dist/esm-browser/v1.js +95 -0
  825. package/stream-api/node_modules/uuid/dist/esm-browser/v3.js +4 -0
  826. package/stream-api/node_modules/uuid/dist/esm-browser/v35.js +66 -0
  827. package/stream-api/node_modules/uuid/dist/esm-browser/v4.js +29 -0
  828. package/stream-api/node_modules/uuid/dist/esm-browser/v5.js +4 -0
  829. package/stream-api/node_modules/uuid/dist/esm-browser/validate.js +7 -0
  830. package/stream-api/node_modules/uuid/dist/esm-browser/version.js +11 -0
  831. package/stream-api/node_modules/uuid/dist/esm-node/index.js +9 -0
  832. package/stream-api/node_modules/uuid/dist/esm-node/md5.js +13 -0
  833. package/stream-api/node_modules/uuid/dist/esm-node/native.js +4 -0
  834. package/stream-api/node_modules/uuid/dist/esm-node/nil.js +1 -0
  835. package/stream-api/node_modules/uuid/dist/esm-node/parse.js +35 -0
  836. package/stream-api/node_modules/uuid/dist/esm-node/regex.js +1 -0
  837. package/stream-api/node_modules/uuid/dist/esm-node/rng.js +12 -0
  838. package/stream-api/node_modules/uuid/dist/esm-node/sha1.js +13 -0
  839. package/stream-api/node_modules/uuid/dist/esm-node/stringify.js +33 -0
  840. package/stream-api/node_modules/uuid/dist/esm-node/v1.js +95 -0
  841. package/stream-api/node_modules/uuid/dist/esm-node/v3.js +4 -0
  842. package/stream-api/node_modules/uuid/dist/esm-node/v35.js +66 -0
  843. package/stream-api/node_modules/uuid/dist/esm-node/v4.js +29 -0
  844. package/stream-api/node_modules/uuid/dist/esm-node/v5.js +4 -0
  845. package/stream-api/node_modules/uuid/dist/esm-node/validate.js +7 -0
  846. package/stream-api/node_modules/uuid/dist/esm-node/version.js +11 -0
  847. package/stream-api/node_modules/uuid/dist/index.js +79 -0
  848. package/stream-api/node_modules/uuid/dist/md5-browser.js +223 -0
  849. package/stream-api/node_modules/uuid/dist/md5.js +23 -0
  850. package/stream-api/node_modules/uuid/dist/native-browser.js +11 -0
  851. package/stream-api/node_modules/uuid/dist/native.js +15 -0
  852. package/stream-api/node_modules/uuid/dist/nil.js +8 -0
  853. package/stream-api/node_modules/uuid/dist/parse.js +45 -0
  854. package/stream-api/node_modules/uuid/dist/regex.js +8 -0
  855. package/stream-api/node_modules/uuid/dist/rng-browser.js +25 -0
  856. package/stream-api/node_modules/uuid/dist/rng.js +24 -0
  857. package/stream-api/node_modules/uuid/dist/sha1-browser.js +104 -0
  858. package/stream-api/node_modules/uuid/dist/sha1.js +23 -0
  859. package/stream-api/node_modules/uuid/dist/stringify.js +44 -0
  860. package/stream-api/node_modules/uuid/dist/uuid-bin.js +85 -0
  861. package/stream-api/node_modules/uuid/dist/v1.js +107 -0
  862. package/stream-api/node_modules/uuid/dist/v3.js +16 -0
  863. package/stream-api/node_modules/uuid/dist/v35.js +80 -0
  864. package/stream-api/node_modules/uuid/dist/v4.js +43 -0
  865. package/stream-api/node_modules/uuid/dist/v5.js +16 -0
  866. package/stream-api/node_modules/uuid/dist/validate.js +17 -0
  867. package/stream-api/node_modules/uuid/dist/version.js +21 -0
  868. package/stream-api/node_modules/uuid/package.json +135 -0
  869. package/stream-api/node_modules/uuid/wrapper.mjs +10 -0
  870. package/stream-api/node_modules/vary/HISTORY.md +39 -0
  871. package/stream-api/node_modules/vary/LICENSE +22 -0
  872. package/stream-api/node_modules/vary/README.md +101 -0
  873. package/stream-api/node_modules/vary/index.js +149 -0
  874. package/stream-api/node_modules/vary/package.json +43 -0
  875. package/stream-api/node_modules/wrappy/LICENSE +15 -0
  876. package/stream-api/node_modules/wrappy/README.md +36 -0
  877. package/stream-api/node_modules/wrappy/package.json +29 -0
  878. package/stream-api/node_modules/wrappy/wrappy.js +33 -0
  879. package/stream-api/package-lock.json +985 -0
  880. package/stream-api/package.json +25 -0
  881. package/stream-api/tsconfig.json +10 -0
@@ -0,0 +1,2069 @@
1
+ declare module "process" {
2
+ import { Control, MessageOptions, SendHandle } from "node:child_process";
3
+ import { PathLike } from "node:fs";
4
+ import * as tty from "node:tty";
5
+ import { Worker } from "node:worker_threads";
6
+
7
+ interface BuiltInModule {
8
+ "assert": typeof import("assert");
9
+ "node:assert": typeof import("node:assert");
10
+ "assert/strict": typeof import("assert/strict");
11
+ "node:assert/strict": typeof import("node:assert/strict");
12
+ "async_hooks": typeof import("async_hooks");
13
+ "node:async_hooks": typeof import("node:async_hooks");
14
+ "buffer": typeof import("buffer");
15
+ "node:buffer": typeof import("node:buffer");
16
+ "child_process": typeof import("child_process");
17
+ "node:child_process": typeof import("node:child_process");
18
+ "cluster": typeof import("cluster");
19
+ "node:cluster": typeof import("node:cluster");
20
+ "console": typeof import("console");
21
+ "node:console": typeof import("node:console");
22
+ "constants": typeof import("constants");
23
+ "node:constants": typeof import("node:constants");
24
+ "crypto": typeof import("crypto");
25
+ "node:crypto": typeof import("node:crypto");
26
+ "dgram": typeof import("dgram");
27
+ "node:dgram": typeof import("node:dgram");
28
+ "diagnostics_channel": typeof import("diagnostics_channel");
29
+ "node:diagnostics_channel": typeof import("node:diagnostics_channel");
30
+ "dns": typeof import("dns");
31
+ "node:dns": typeof import("node:dns");
32
+ "dns/promises": typeof import("dns/promises");
33
+ "node:dns/promises": typeof import("node:dns/promises");
34
+ "domain": typeof import("domain");
35
+ "node:domain": typeof import("node:domain");
36
+ "events": typeof import("events");
37
+ "node:events": typeof import("node:events");
38
+ "fs": typeof import("fs");
39
+ "node:fs": typeof import("node:fs");
40
+ "fs/promises": typeof import("fs/promises");
41
+ "node:fs/promises": typeof import("node:fs/promises");
42
+ "http": typeof import("http");
43
+ "node:http": typeof import("node:http");
44
+ "http2": typeof import("http2");
45
+ "node:http2": typeof import("node:http2");
46
+ "https": typeof import("https");
47
+ "node:https": typeof import("node:https");
48
+ "inspector": typeof import("inspector");
49
+ "node:inspector": typeof import("node:inspector");
50
+ "inspector/promises": typeof import("inspector/promises");
51
+ "node:inspector/promises": typeof import("node:inspector/promises");
52
+ "module": typeof import("module");
53
+ "node:module": typeof import("node:module");
54
+ "net": typeof import("net");
55
+ "node:net": typeof import("node:net");
56
+ "os": typeof import("os");
57
+ "node:os": typeof import("node:os");
58
+ "path": typeof import("path");
59
+ "node:path": typeof import("node:path");
60
+ "path/posix": typeof import("path/posix");
61
+ "node:path/posix": typeof import("node:path/posix");
62
+ "path/win32": typeof import("path/win32");
63
+ "node:path/win32": typeof import("node:path/win32");
64
+ "perf_hooks": typeof import("perf_hooks");
65
+ "node:perf_hooks": typeof import("node:perf_hooks");
66
+ "process": typeof import("process");
67
+ "node:process": typeof import("node:process");
68
+ "punycode": typeof import("punycode");
69
+ "node:punycode": typeof import("node:punycode");
70
+ "querystring": typeof import("querystring");
71
+ "node:querystring": typeof import("node:querystring");
72
+ "readline": typeof import("readline");
73
+ "node:readline": typeof import("node:readline");
74
+ "readline/promises": typeof import("readline/promises");
75
+ "node:readline/promises": typeof import("node:readline/promises");
76
+ "repl": typeof import("repl");
77
+ "node:repl": typeof import("node:repl");
78
+ "node:sea": typeof import("node:sea");
79
+ "node:sqlite": typeof import("node:sqlite");
80
+ "stream": typeof import("stream");
81
+ "node:stream": typeof import("node:stream");
82
+ "stream/consumers": typeof import("stream/consumers");
83
+ "node:stream/consumers": typeof import("node:stream/consumers");
84
+ "stream/promises": typeof import("stream/promises");
85
+ "node:stream/promises": typeof import("node:stream/promises");
86
+ "stream/web": typeof import("stream/web");
87
+ "node:stream/web": typeof import("node:stream/web");
88
+ "string_decoder": typeof import("string_decoder");
89
+ "node:string_decoder": typeof import("node:string_decoder");
90
+ "node:test": typeof import("node:test");
91
+ "node:test/reporters": typeof import("node:test/reporters");
92
+ "timers": typeof import("timers");
93
+ "node:timers": typeof import("node:timers");
94
+ "timers/promises": typeof import("timers/promises");
95
+ "node:timers/promises": typeof import("node:timers/promises");
96
+ "tls": typeof import("tls");
97
+ "node:tls": typeof import("node:tls");
98
+ "trace_events": typeof import("trace_events");
99
+ "node:trace_events": typeof import("node:trace_events");
100
+ "tty": typeof import("tty");
101
+ "node:tty": typeof import("node:tty");
102
+ "url": typeof import("url");
103
+ "node:url": typeof import("node:url");
104
+ "util": typeof import("util");
105
+ "node:util": typeof import("node:util");
106
+ "sys": typeof import("util");
107
+ "node:sys": typeof import("node:util");
108
+ "util/types": typeof import("util/types");
109
+ "node:util/types": typeof import("node:util/types");
110
+ "v8": typeof import("v8");
111
+ "node:v8": typeof import("node:v8");
112
+ "vm": typeof import("vm");
113
+ "node:vm": typeof import("node:vm");
114
+ "wasi": typeof import("wasi");
115
+ "node:wasi": typeof import("node:wasi");
116
+ "worker_threads": typeof import("worker_threads");
117
+ "node:worker_threads": typeof import("node:worker_threads");
118
+ "zlib": typeof import("zlib");
119
+ "node:zlib": typeof import("node:zlib");
120
+ }
121
+ global {
122
+ var process: NodeJS.Process;
123
+ namespace NodeJS {
124
+ // this namespace merge is here because these are specifically used
125
+ // as the type for process.stdin, process.stdout, and process.stderr.
126
+ // they can't live in tty.d.ts because we need to disambiguate the imported name.
127
+ interface ReadStream extends tty.ReadStream {}
128
+ interface WriteStream extends tty.WriteStream {}
129
+ interface MemoryUsageFn {
130
+ /**
131
+ * The `process.memoryUsage()` method iterate over each page to gather informations about memory
132
+ * usage which can be slow depending on the program memory allocations.
133
+ */
134
+ (): MemoryUsage;
135
+ /**
136
+ * method returns an integer representing the Resident Set Size (RSS) in bytes.
137
+ */
138
+ rss(): number;
139
+ }
140
+ interface MemoryUsage {
141
+ /**
142
+ * Resident Set Size, is the amount of space occupied in the main memory device (that is a subset of the total allocated memory) for the
143
+ * process, including all C++ and JavaScript objects and code.
144
+ */
145
+ rss: number;
146
+ /**
147
+ * Refers to V8's memory usage.
148
+ */
149
+ heapTotal: number;
150
+ /**
151
+ * Refers to V8's memory usage.
152
+ */
153
+ heapUsed: number;
154
+ external: number;
155
+ /**
156
+ * Refers to memory allocated for `ArrayBuffer`s and `SharedArrayBuffer`s, including all Node.js Buffers. This is also included
157
+ * in the external value. When Node.js is used as an embedded library, this value may be `0` because allocations for `ArrayBuffer`s
158
+ * may not be tracked in that case.
159
+ */
160
+ arrayBuffers: number;
161
+ }
162
+ interface CpuUsage {
163
+ user: number;
164
+ system: number;
165
+ }
166
+ interface ProcessRelease {
167
+ name: string;
168
+ sourceUrl?: string | undefined;
169
+ headersUrl?: string | undefined;
170
+ libUrl?: string | undefined;
171
+ lts?: string | undefined;
172
+ }
173
+ interface ProcessFeatures {
174
+ /**
175
+ * A boolean value that is `true` if the current Node.js build is caching builtin modules.
176
+ * @since v12.0.0
177
+ */
178
+ readonly cached_builtins: boolean;
179
+ /**
180
+ * A boolean value that is `true` if the current Node.js build is a debug build.
181
+ * @since v0.5.5
182
+ */
183
+ readonly debug: boolean;
184
+ /**
185
+ * A boolean value that is `true` if the current Node.js build includes the inspector.
186
+ * @since v11.10.0
187
+ */
188
+ readonly inspector: boolean;
189
+ /**
190
+ * A boolean value that is `true` if the current Node.js build includes support for IPv6.
191
+ *
192
+ * Since all Node.js builds have IPv6 support, this value is always `true`.
193
+ * @since v0.5.3
194
+ * @deprecated This property is always true, and any checks based on it are redundant.
195
+ */
196
+ readonly ipv6: boolean;
197
+ /**
198
+ * A boolean value that is `true` if the current Node.js build supports
199
+ * [loading ECMAScript modules using `require()`](https://nodejs.org/docs/latest-v24.x/api/modules.md#loading-ecmascript-modules-using-require).
200
+ * @since v22.10.0
201
+ */
202
+ readonly require_module: boolean;
203
+ /**
204
+ * A boolean value that is `true` if the current Node.js build includes support for TLS.
205
+ * @since v0.5.3
206
+ */
207
+ readonly tls: boolean;
208
+ /**
209
+ * A boolean value that is `true` if the current Node.js build includes support for ALPN in TLS.
210
+ *
211
+ * In Node.js 11.0.0 and later versions, the OpenSSL dependencies feature unconditional ALPN support.
212
+ * This value is therefore identical to that of `process.features.tls`.
213
+ * @since v4.8.0
214
+ * @deprecated Use `process.features.tls` instead.
215
+ */
216
+ readonly tls_alpn: boolean;
217
+ /**
218
+ * A boolean value that is `true` if the current Node.js build includes support for OCSP in TLS.
219
+ *
220
+ * In Node.js 11.0.0 and later versions, the OpenSSL dependencies feature unconditional OCSP support.
221
+ * This value is therefore identical to that of `process.features.tls`.
222
+ * @since v0.11.13
223
+ * @deprecated Use `process.features.tls` instead.
224
+ */
225
+ readonly tls_ocsp: boolean;
226
+ /**
227
+ * A boolean value that is `true` if the current Node.js build includes support for SNI in TLS.
228
+ *
229
+ * In Node.js 11.0.0 and later versions, the OpenSSL dependencies feature unconditional SNI support.
230
+ * This value is therefore identical to that of `process.features.tls`.
231
+ * @since v0.5.3
232
+ * @deprecated Use `process.features.tls` instead.
233
+ */
234
+ readonly tls_sni: boolean;
235
+ /**
236
+ * A value that is `"strip"` by default,
237
+ * `"transform"` if Node.js is run with `--experimental-transform-types`, and `false` if
238
+ * Node.js is run with `--no-experimental-strip-types`.
239
+ * @since v22.10.0
240
+ */
241
+ readonly typescript: "strip" | "transform" | false;
242
+ /**
243
+ * A boolean value that is `true` if the current Node.js build includes support for libuv.
244
+ *
245
+ * Since it's not possible to build Node.js without libuv, this value is always `true`.
246
+ * @since v0.5.3
247
+ * @deprecated This property is always true, and any checks based on it are redundant.
248
+ */
249
+ readonly uv: boolean;
250
+ }
251
+ interface ProcessVersions extends Dict<string> {
252
+ http_parser: string;
253
+ node: string;
254
+ v8: string;
255
+ ares: string;
256
+ uv: string;
257
+ zlib: string;
258
+ modules: string;
259
+ openssl: string;
260
+ }
261
+ type Platform =
262
+ | "aix"
263
+ | "android"
264
+ | "darwin"
265
+ | "freebsd"
266
+ | "haiku"
267
+ | "linux"
268
+ | "openbsd"
269
+ | "sunos"
270
+ | "win32"
271
+ | "cygwin"
272
+ | "netbsd";
273
+ type Architecture =
274
+ | "arm"
275
+ | "arm64"
276
+ | "ia32"
277
+ | "loong64"
278
+ | "mips"
279
+ | "mipsel"
280
+ | "ppc64"
281
+ | "riscv64"
282
+ | "s390x"
283
+ | "x64";
284
+ type Signals =
285
+ | "SIGABRT"
286
+ | "SIGALRM"
287
+ | "SIGBUS"
288
+ | "SIGCHLD"
289
+ | "SIGCONT"
290
+ | "SIGFPE"
291
+ | "SIGHUP"
292
+ | "SIGILL"
293
+ | "SIGINT"
294
+ | "SIGIO"
295
+ | "SIGIOT"
296
+ | "SIGKILL"
297
+ | "SIGPIPE"
298
+ | "SIGPOLL"
299
+ | "SIGPROF"
300
+ | "SIGPWR"
301
+ | "SIGQUIT"
302
+ | "SIGSEGV"
303
+ | "SIGSTKFLT"
304
+ | "SIGSTOP"
305
+ | "SIGSYS"
306
+ | "SIGTERM"
307
+ | "SIGTRAP"
308
+ | "SIGTSTP"
309
+ | "SIGTTIN"
310
+ | "SIGTTOU"
311
+ | "SIGUNUSED"
312
+ | "SIGURG"
313
+ | "SIGUSR1"
314
+ | "SIGUSR2"
315
+ | "SIGVTALRM"
316
+ | "SIGWINCH"
317
+ | "SIGXCPU"
318
+ | "SIGXFSZ"
319
+ | "SIGBREAK"
320
+ | "SIGLOST"
321
+ | "SIGINFO";
322
+ type UncaughtExceptionOrigin = "uncaughtException" | "unhandledRejection";
323
+ type MultipleResolveType = "resolve" | "reject";
324
+ type BeforeExitListener = (code: number) => void;
325
+ type DisconnectListener = () => void;
326
+ type ExitListener = (code: number) => void;
327
+ type RejectionHandledListener = (promise: Promise<unknown>) => void;
328
+ type UncaughtExceptionListener = (error: Error, origin: UncaughtExceptionOrigin) => void;
329
+ /**
330
+ * Most of the time the unhandledRejection will be an Error, but this should not be relied upon
331
+ * as *anything* can be thrown/rejected, it is therefore unsafe to assume that the value is an Error.
332
+ */
333
+ type UnhandledRejectionListener = (reason: unknown, promise: Promise<unknown>) => void;
334
+ type WarningListener = (warning: Error) => void;
335
+ type MessageListener = (message: unknown, sendHandle: SendHandle) => void;
336
+ type SignalsListener = (signal: Signals) => void;
337
+ type MultipleResolveListener = (
338
+ type: MultipleResolveType,
339
+ promise: Promise<unknown>,
340
+ value: unknown,
341
+ ) => void;
342
+ type WorkerListener = (worker: Worker) => void;
343
+ interface Socket extends ReadWriteStream {
344
+ isTTY?: true | undefined;
345
+ }
346
+ // Alias for compatibility
347
+ interface ProcessEnv extends Dict<string> {
348
+ /**
349
+ * Can be used to change the default timezone at runtime
350
+ */
351
+ TZ?: string | undefined;
352
+ }
353
+ interface HRTime {
354
+ /**
355
+ * This is the legacy version of {@link process.hrtime.bigint()}
356
+ * before bigint was introduced in JavaScript.
357
+ *
358
+ * The `process.hrtime()` method returns the current high-resolution real time in a `[seconds, nanoseconds]` tuple `Array`,
359
+ * where `nanoseconds` is the remaining part of the real time that can't be represented in second precision.
360
+ *
361
+ * `time` is an optional parameter that must be the result of a previous `process.hrtime()` call to diff with the current time.
362
+ * If the parameter passed in is not a tuple `Array`, a TypeError will be thrown.
363
+ * Passing in a user-defined array instead of the result of a previous call to `process.hrtime()` will lead to undefined behavior.
364
+ *
365
+ * These times are relative to an arbitrary time in the past,
366
+ * and not related to the time of day and therefore not subject to clock drift.
367
+ * The primary use is for measuring performance between intervals:
368
+ * ```js
369
+ * const { hrtime } = require('node:process');
370
+ * const NS_PER_SEC = 1e9;
371
+ * const time = hrtime();
372
+ * // [ 1800216, 25 ]
373
+ *
374
+ * setTimeout(() => {
375
+ * const diff = hrtime(time);
376
+ * // [ 1, 552 ]
377
+ *
378
+ * console.log(`Benchmark took ${diff[0] * NS_PER_SEC + diff[1]} nanoseconds`);
379
+ * // Benchmark took 1000000552 nanoseconds
380
+ * }, 1000);
381
+ * ```
382
+ * @since 0.7.6
383
+ * @legacy Use {@link process.hrtime.bigint()} instead.
384
+ * @param time The result of a previous call to `process.hrtime()`
385
+ */
386
+ (time?: [number, number]): [number, number];
387
+ /**
388
+ * The `bigint` version of the {@link process.hrtime()} method returning the current high-resolution real time in nanoseconds as a `bigint`.
389
+ *
390
+ * Unlike {@link process.hrtime()}, it does not support an additional time argument since the difference can just be computed directly by subtraction of the two `bigint`s.
391
+ * ```js
392
+ * import { hrtime } from 'node:process';
393
+ *
394
+ * const start = hrtime.bigint();
395
+ * // 191051479007711n
396
+ *
397
+ * setTimeout(() => {
398
+ * const end = hrtime.bigint();
399
+ * // 191052633396993n
400
+ *
401
+ * console.log(`Benchmark took ${end - start} nanoseconds`);
402
+ * // Benchmark took 1154389282 nanoseconds
403
+ * }, 1000);
404
+ * ```
405
+ * @since v10.7.0
406
+ */
407
+ bigint(): bigint;
408
+ }
409
+ interface ProcessPermission {
410
+ /**
411
+ * Verifies that the process is able to access the given scope and reference.
412
+ * If no reference is provided, a global scope is assumed, for instance, `process.permission.has('fs.read')`
413
+ * will check if the process has ALL file system read permissions.
414
+ *
415
+ * The reference has a meaning based on the provided scope. For example, the reference when the scope is File System means files and folders.
416
+ *
417
+ * The available scopes are:
418
+ *
419
+ * * `fs` - All File System
420
+ * * `fs.read` - File System read operations
421
+ * * `fs.write` - File System write operations
422
+ * * `child` - Child process spawning operations
423
+ * * `worker` - Worker thread spawning operation
424
+ *
425
+ * ```js
426
+ * // Check if the process has permission to read the README file
427
+ * process.permission.has('fs.read', './README.md');
428
+ * // Check if the process has read permission operations
429
+ * process.permission.has('fs.read');
430
+ * ```
431
+ * @since v20.0.0
432
+ */
433
+ has(scope: string, reference?: string): boolean;
434
+ }
435
+ interface ProcessReport {
436
+ /**
437
+ * Write reports in a compact format, single-line JSON, more easily consumable by log processing systems
438
+ * than the default multi-line format designed for human consumption.
439
+ * @since v13.12.0, v12.17.0
440
+ */
441
+ compact: boolean;
442
+ /**
443
+ * Directory where the report is written.
444
+ * The default value is the empty string, indicating that reports are written to the current
445
+ * working directory of the Node.js process.
446
+ */
447
+ directory: string;
448
+ /**
449
+ * Filename where the report is written. If set to the empty string, the output filename will be comprised
450
+ * of a timestamp, PID, and sequence number. The default value is the empty string.
451
+ */
452
+ filename: string;
453
+ /**
454
+ * Returns a JavaScript Object representation of a diagnostic report for the running process.
455
+ * The report's JavaScript stack trace is taken from `err`, if present.
456
+ */
457
+ getReport(err?: Error): object;
458
+ /**
459
+ * If true, a diagnostic report is generated on fatal errors,
460
+ * such as out of memory errors or failed C++ assertions.
461
+ * @default false
462
+ */
463
+ reportOnFatalError: boolean;
464
+ /**
465
+ * If true, a diagnostic report is generated when the process
466
+ * receives the signal specified by process.report.signal.
467
+ * @default false
468
+ */
469
+ reportOnSignal: boolean;
470
+ /**
471
+ * If true, a diagnostic report is generated on uncaught exception.
472
+ * @default false
473
+ */
474
+ reportOnUncaughtException: boolean;
475
+ /**
476
+ * The signal used to trigger the creation of a diagnostic report.
477
+ * @default 'SIGUSR2'
478
+ */
479
+ signal: Signals;
480
+ /**
481
+ * Writes a diagnostic report to a file. If filename is not provided, the default filename
482
+ * includes the date, time, PID, and a sequence number.
483
+ * The report's JavaScript stack trace is taken from `err`, if present.
484
+ *
485
+ * If the value of filename is set to `'stdout'` or `'stderr'`, the report is written
486
+ * to the stdout or stderr of the process respectively.
487
+ * @param fileName Name of the file where the report is written.
488
+ * This should be a relative path, that will be appended to the directory specified in
489
+ * `process.report.directory`, or the current working directory of the Node.js process,
490
+ * if unspecified.
491
+ * @param err A custom error used for reporting the JavaScript stack.
492
+ * @return Filename of the generated report.
493
+ */
494
+ writeReport(fileName?: string, err?: Error): string;
495
+ writeReport(err?: Error): string;
496
+ }
497
+ interface ResourceUsage {
498
+ fsRead: number;
499
+ fsWrite: number;
500
+ involuntaryContextSwitches: number;
501
+ ipcReceived: number;
502
+ ipcSent: number;
503
+ majorPageFault: number;
504
+ maxRSS: number;
505
+ minorPageFault: number;
506
+ sharedMemorySize: number;
507
+ signalsCount: number;
508
+ swappedOut: number;
509
+ systemCPUTime: number;
510
+ unsharedDataSize: number;
511
+ unsharedStackSize: number;
512
+ userCPUTime: number;
513
+ voluntaryContextSwitches: number;
514
+ }
515
+ interface EmitWarningOptions {
516
+ /**
517
+ * When `warning` is a `string`, `type` is the name to use for the _type_ of warning being emitted.
518
+ *
519
+ * @default 'Warning'
520
+ */
521
+ type?: string | undefined;
522
+ /**
523
+ * A unique identifier for the warning instance being emitted.
524
+ */
525
+ code?: string | undefined;
526
+ /**
527
+ * When `warning` is a `string`, `ctor` is an optional function used to limit the generated stack trace.
528
+ *
529
+ * @default process.emitWarning
530
+ */
531
+ ctor?: Function | undefined;
532
+ /**
533
+ * Additional text to include with the error.
534
+ */
535
+ detail?: string | undefined;
536
+ }
537
+ interface ProcessConfig {
538
+ readonly target_defaults: {
539
+ readonly cflags: any[];
540
+ readonly default_configuration: string;
541
+ readonly defines: string[];
542
+ readonly include_dirs: string[];
543
+ readonly libraries: string[];
544
+ };
545
+ readonly variables: {
546
+ readonly clang: number;
547
+ readonly host_arch: string;
548
+ readonly node_install_npm: boolean;
549
+ readonly node_install_waf: boolean;
550
+ readonly node_prefix: string;
551
+ readonly node_shared_openssl: boolean;
552
+ readonly node_shared_v8: boolean;
553
+ readonly node_shared_zlib: boolean;
554
+ readonly node_use_dtrace: boolean;
555
+ readonly node_use_etw: boolean;
556
+ readonly node_use_openssl: boolean;
557
+ readonly target_arch: string;
558
+ readonly v8_no_strict_aliasing: number;
559
+ readonly v8_use_snapshot: boolean;
560
+ readonly visibility: string;
561
+ };
562
+ }
563
+ interface Process extends EventEmitter {
564
+ /**
565
+ * The `process.stdout` property returns a stream connected to`stdout` (fd `1`). It is a `net.Socket` (which is a `Duplex` stream) unless fd `1` refers to a file, in which case it is
566
+ * a `Writable` stream.
567
+ *
568
+ * For example, to copy `process.stdin` to `process.stdout`:
569
+ *
570
+ * ```js
571
+ * import { stdin, stdout } from 'node:process';
572
+ *
573
+ * stdin.pipe(stdout);
574
+ * ```
575
+ *
576
+ * `process.stdout` differs from other Node.js streams in important ways. See `note on process I/O` for more information.
577
+ */
578
+ stdout: WriteStream & {
579
+ fd: 1;
580
+ };
581
+ /**
582
+ * The `process.stderr` property returns a stream connected to`stderr` (fd `2`). It is a `net.Socket` (which is a `Duplex` stream) unless fd `2` refers to a file, in which case it is
583
+ * a `Writable` stream.
584
+ *
585
+ * `process.stderr` differs from other Node.js streams in important ways. See `note on process I/O` for more information.
586
+ */
587
+ stderr: WriteStream & {
588
+ fd: 2;
589
+ };
590
+ /**
591
+ * The `process.stdin` property returns a stream connected to`stdin` (fd `0`). It is a `net.Socket` (which is a `Duplex` stream) unless fd `0` refers to a file, in which case it is
592
+ * a `Readable` stream.
593
+ *
594
+ * For details of how to read from `stdin` see `readable.read()`.
595
+ *
596
+ * As a `Duplex` stream, `process.stdin` can also be used in "old" mode that
597
+ * is compatible with scripts written for Node.js prior to v0.10\.
598
+ * For more information see `Stream compatibility`.
599
+ *
600
+ * In "old" streams mode the `stdin` stream is paused by default, so one
601
+ * must call `process.stdin.resume()` to read from it. Note also that calling `process.stdin.resume()` itself would switch stream to "old" mode.
602
+ */
603
+ stdin: ReadStream & {
604
+ fd: 0;
605
+ };
606
+ /**
607
+ * The `process.argv` property returns an array containing the command-line
608
+ * arguments passed when the Node.js process was launched. The first element will
609
+ * be {@link execPath}. See `process.argv0` if access to the original value
610
+ * of `argv[0]` is needed. The second element will be the path to the JavaScript
611
+ * file being executed. The remaining elements will be any additional command-line
612
+ * arguments.
613
+ *
614
+ * For example, assuming the following script for `process-args.js`:
615
+ *
616
+ * ```js
617
+ * import { argv } from 'node:process';
618
+ *
619
+ * // print process.argv
620
+ * argv.forEach((val, index) => {
621
+ * console.log(`${index}: ${val}`);
622
+ * });
623
+ * ```
624
+ *
625
+ * Launching the Node.js process as:
626
+ *
627
+ * ```bash
628
+ * node process-args.js one two=three four
629
+ * ```
630
+ *
631
+ * Would generate the output:
632
+ *
633
+ * ```text
634
+ * 0: /usr/local/bin/node
635
+ * 1: /Users/mjr/work/node/process-args.js
636
+ * 2: one
637
+ * 3: two=three
638
+ * 4: four
639
+ * ```
640
+ * @since v0.1.27
641
+ */
642
+ argv: string[];
643
+ /**
644
+ * The `process.argv0` property stores a read-only copy of the original value of`argv[0]` passed when Node.js starts.
645
+ *
646
+ * ```console
647
+ * $ bash -c 'exec -a customArgv0 ./node'
648
+ * > process.argv[0]
649
+ * '/Volumes/code/external/node/out/Release/node'
650
+ * > process.argv0
651
+ * 'customArgv0'
652
+ * ```
653
+ * @since v6.4.0
654
+ */
655
+ argv0: string;
656
+ /**
657
+ * The `process.execArgv` property returns the set of Node.js-specific command-line
658
+ * options passed when the Node.js process was launched. These options do not
659
+ * appear in the array returned by the {@link argv} property, and do not
660
+ * include the Node.js executable, the name of the script, or any options following
661
+ * the script name. These options are useful in order to spawn child processes with
662
+ * the same execution environment as the parent.
663
+ *
664
+ * ```bash
665
+ * node --icu-data-dir=./foo --require ./bar.js script.js --version
666
+ * ```
667
+ *
668
+ * Results in `process.execArgv`:
669
+ *
670
+ * ```js
671
+ * ["--icu-data-dir=./foo", "--require", "./bar.js"]
672
+ * ```
673
+ *
674
+ * And `process.argv`:
675
+ *
676
+ * ```js
677
+ * ['/usr/local/bin/node', 'script.js', '--version']
678
+ * ```
679
+ *
680
+ * Refer to `Worker constructor` for the detailed behavior of worker
681
+ * threads with this property.
682
+ * @since v0.7.7
683
+ */
684
+ execArgv: string[];
685
+ /**
686
+ * The `process.execPath` property returns the absolute pathname of the executable
687
+ * that started the Node.js process. Symbolic links, if any, are resolved.
688
+ *
689
+ * ```js
690
+ * '/usr/local/bin/node'
691
+ * ```
692
+ * @since v0.1.100
693
+ */
694
+ execPath: string;
695
+ /**
696
+ * The `process.abort()` method causes the Node.js process to exit immediately and
697
+ * generate a core file.
698
+ *
699
+ * This feature is not available in `Worker` threads.
700
+ * @since v0.7.0
701
+ */
702
+ abort(): never;
703
+ /**
704
+ * The `process.chdir()` method changes the current working directory of the
705
+ * Node.js process or throws an exception if doing so fails (for instance, if
706
+ * the specified `directory` does not exist).
707
+ *
708
+ * ```js
709
+ * import { chdir, cwd } from 'node:process';
710
+ *
711
+ * console.log(`Starting directory: ${cwd()}`);
712
+ * try {
713
+ * chdir('/tmp');
714
+ * console.log(`New directory: ${cwd()}`);
715
+ * } catch (err) {
716
+ * console.error(`chdir: ${err}`);
717
+ * }
718
+ * ```
719
+ *
720
+ * This feature is not available in `Worker` threads.
721
+ * @since v0.1.17
722
+ */
723
+ chdir(directory: string): void;
724
+ /**
725
+ * The `process.cwd()` method returns the current working directory of the Node.js
726
+ * process.
727
+ *
728
+ * ```js
729
+ * import { cwd } from 'node:process';
730
+ *
731
+ * console.log(`Current directory: ${cwd()}`);
732
+ * ```
733
+ * @since v0.1.8
734
+ */
735
+ cwd(): string;
736
+ /**
737
+ * The port used by the Node.js debugger when enabled.
738
+ *
739
+ * ```js
740
+ * import process from 'node:process';
741
+ *
742
+ * process.debugPort = 5858;
743
+ * ```
744
+ * @since v0.7.2
745
+ */
746
+ debugPort: number;
747
+ /**
748
+ * The `process.dlopen()` method allows dynamically loading shared objects. It is primarily used by `require()` to load C++ Addons, and
749
+ * should not be used directly, except in special cases. In other words, `require()` should be preferred over `process.dlopen()`
750
+ * unless there are specific reasons such as custom dlopen flags or loading from ES modules.
751
+ *
752
+ * The `flags` argument is an integer that allows to specify dlopen behavior. See the `[os.constants.dlopen](https://nodejs.org/docs/latest-v24.x/api/os.html#dlopen-constants)`
753
+ * documentation for details.
754
+ *
755
+ * An important requirement when calling `process.dlopen()` is that the `module` instance must be passed. Functions exported by the C++ Addon
756
+ * are then accessible via `module.exports`.
757
+ *
758
+ * The example below shows how to load a C++ Addon, named `local.node`, that exports a `foo` function. All the symbols are loaded before the call returns, by passing the `RTLD_NOW` constant.
759
+ * In this example the constant is assumed to be available.
760
+ *
761
+ * ```js
762
+ * import { dlopen } from 'node:process';
763
+ * import { constants } from 'node:os';
764
+ * import { fileURLToPath } from 'node:url';
765
+ *
766
+ * const module = { exports: {} };
767
+ * dlopen(module, fileURLToPath(new URL('local.node', import.meta.url)),
768
+ * constants.dlopen.RTLD_NOW);
769
+ * module.exports.foo();
770
+ * ```
771
+ */
772
+ dlopen(module: object, filename: string, flags?: number): void;
773
+ /**
774
+ * The `process.emitWarning()` method can be used to emit custom or application
775
+ * specific process warnings. These can be listened for by adding a handler to the `'warning'` event.
776
+ *
777
+ * ```js
778
+ * import { emitWarning } from 'node:process';
779
+ *
780
+ * // Emit a warning using a string.
781
+ * emitWarning('Something happened!');
782
+ * // Emits: (node: 56338) Warning: Something happened!
783
+ * ```
784
+ *
785
+ * ```js
786
+ * import { emitWarning } from 'node:process';
787
+ *
788
+ * // Emit a warning using a string and a type.
789
+ * emitWarning('Something Happened!', 'CustomWarning');
790
+ * // Emits: (node:56338) CustomWarning: Something Happened!
791
+ * ```
792
+ *
793
+ * ```js
794
+ * import { emitWarning } from 'node:process';
795
+ *
796
+ * emitWarning('Something happened!', 'CustomWarning', 'WARN001');
797
+ * // Emits: (node:56338) [WARN001] CustomWarning: Something happened!
798
+ * ```js
799
+ *
800
+ * In each of the previous examples, an `Error` object is generated internally by `process.emitWarning()` and passed through to the `'warning'` handler.
801
+ *
802
+ * ```js
803
+ * import process from 'node:process';
804
+ *
805
+ * process.on('warning', (warning) => {
806
+ * console.warn(warning.name); // 'Warning'
807
+ * console.warn(warning.message); // 'Something happened!'
808
+ * console.warn(warning.code); // 'MY_WARNING'
809
+ * console.warn(warning.stack); // Stack trace
810
+ * console.warn(warning.detail); // 'This is some additional information'
811
+ * });
812
+ * ```
813
+ *
814
+ * If `warning` is passed as an `Error` object, it will be passed through to the `'warning'` event handler
815
+ * unmodified (and the optional `type`, `code` and `ctor` arguments will be ignored):
816
+ *
817
+ * ```js
818
+ * import { emitWarning } from 'node:process';
819
+ *
820
+ * // Emit a warning using an Error object.
821
+ * const myWarning = new Error('Something happened!');
822
+ * // Use the Error name property to specify the type name
823
+ * myWarning.name = 'CustomWarning';
824
+ * myWarning.code = 'WARN001';
825
+ *
826
+ * emitWarning(myWarning);
827
+ * // Emits: (node:56338) [WARN001] CustomWarning: Something happened!
828
+ * ```
829
+ *
830
+ * A `TypeError` is thrown if `warning` is anything other than a string or `Error` object.
831
+ *
832
+ * While process warnings use `Error` objects, the process warning mechanism is not a replacement for normal error handling mechanisms.
833
+ *
834
+ * The following additional handling is implemented if the warning `type` is `'DeprecationWarning'`:
835
+ * * If the `--throw-deprecation` command-line flag is used, the deprecation warning is thrown as an exception rather than being emitted as an event.
836
+ * * If the `--no-deprecation` command-line flag is used, the deprecation warning is suppressed.
837
+ * * If the `--trace-deprecation` command-line flag is used, the deprecation warning is printed to `stderr` along with the full stack trace.
838
+ * @since v8.0.0
839
+ * @param warning The warning to emit.
840
+ */
841
+ emitWarning(warning: string | Error, ctor?: Function): void;
842
+ emitWarning(warning: string | Error, type?: string, ctor?: Function): void;
843
+ emitWarning(warning: string | Error, type?: string, code?: string, ctor?: Function): void;
844
+ emitWarning(warning: string | Error, options?: EmitWarningOptions): void;
845
+ /**
846
+ * The `process.env` property returns an object containing the user environment.
847
+ * See [`environ(7)`](http://man7.org/linux/man-pages/man7/environ.7.html).
848
+ *
849
+ * An example of this object looks like:
850
+ *
851
+ * ```js
852
+ * {
853
+ * TERM: 'xterm-256color',
854
+ * SHELL: '/usr/local/bin/bash',
855
+ * USER: 'maciej',
856
+ * PATH: '~/.bin/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin',
857
+ * PWD: '/Users/maciej',
858
+ * EDITOR: 'vim',
859
+ * SHLVL: '1',
860
+ * HOME: '/Users/maciej',
861
+ * LOGNAME: 'maciej',
862
+ * _: '/usr/local/bin/node'
863
+ * }
864
+ * ```
865
+ *
866
+ * It is possible to modify this object, but such modifications will not be
867
+ * reflected outside the Node.js process, or (unless explicitly requested)
868
+ * to other `Worker` threads.
869
+ * In other words, the following example would not work:
870
+ *
871
+ * ```bash
872
+ * node -e 'process.env.foo = "bar"' &#x26;&#x26; echo $foo
873
+ * ```
874
+ *
875
+ * While the following will:
876
+ *
877
+ * ```js
878
+ * import { env } from 'node:process';
879
+ *
880
+ * env.foo = 'bar';
881
+ * console.log(env.foo);
882
+ * ```
883
+ *
884
+ * Assigning a property on `process.env` will implicitly convert the value
885
+ * to a string. **This behavior is deprecated.** Future versions of Node.js may
886
+ * throw an error when the value is not a string, number, or boolean.
887
+ *
888
+ * ```js
889
+ * import { env } from 'node:process';
890
+ *
891
+ * env.test = null;
892
+ * console.log(env.test);
893
+ * // => 'null'
894
+ * env.test = undefined;
895
+ * console.log(env.test);
896
+ * // => 'undefined'
897
+ * ```
898
+ *
899
+ * Use `delete` to delete a property from `process.env`.
900
+ *
901
+ * ```js
902
+ * import { env } from 'node:process';
903
+ *
904
+ * env.TEST = 1;
905
+ * delete env.TEST;
906
+ * console.log(env.TEST);
907
+ * // => undefined
908
+ * ```
909
+ *
910
+ * On Windows operating systems, environment variables are case-insensitive.
911
+ *
912
+ * ```js
913
+ * import { env } from 'node:process';
914
+ *
915
+ * env.TEST = 1;
916
+ * console.log(env.test);
917
+ * // => 1
918
+ * ```
919
+ *
920
+ * Unless explicitly specified when creating a `Worker` instance,
921
+ * each `Worker` thread has its own copy of `process.env`, based on its
922
+ * parent thread's `process.env`, or whatever was specified as the `env` option
923
+ * to the `Worker` constructor. Changes to `process.env` will not be visible
924
+ * across `Worker` threads, and only the main thread can make changes that
925
+ * are visible to the operating system or to native add-ons. On Windows, a copy of `process.env` on a `Worker` instance operates in a case-sensitive manner
926
+ * unlike the main thread.
927
+ * @since v0.1.27
928
+ */
929
+ env: ProcessEnv;
930
+ /**
931
+ * The `process.exit()` method instructs Node.js to terminate the process
932
+ * synchronously with an exit status of `code`. If `code` is omitted, exit uses
933
+ * either the 'success' code `0` or the value of `process.exitCode` if it has been
934
+ * set. Node.js will not terminate until all the `'exit'` event listeners are
935
+ * called.
936
+ *
937
+ * To exit with a 'failure' code:
938
+ *
939
+ * ```js
940
+ * import { exit } from 'node:process';
941
+ *
942
+ * exit(1);
943
+ * ```
944
+ *
945
+ * The shell that executed Node.js should see the exit code as `1`.
946
+ *
947
+ * Calling `process.exit()` will force the process to exit as quickly as possible
948
+ * even if there are still asynchronous operations pending that have not yet
949
+ * completed fully, including I/O operations to `process.stdout` and `process.stderr`.
950
+ *
951
+ * In most situations, it is not actually necessary to call `process.exit()` explicitly. The Node.js process will exit on its own _if there is no additional_
952
+ * _work pending_ in the event loop. The `process.exitCode` property can be set to
953
+ * tell the process which exit code to use when the process exits gracefully.
954
+ *
955
+ * For instance, the following example illustrates a _misuse_ of the `process.exit()` method that could lead to data printed to stdout being
956
+ * truncated and lost:
957
+ *
958
+ * ```js
959
+ * import { exit } from 'node:process';
960
+ *
961
+ * // This is an example of what *not* to do:
962
+ * if (someConditionNotMet()) {
963
+ * printUsageToStdout();
964
+ * exit(1);
965
+ * }
966
+ * ```
967
+ *
968
+ * The reason this is problematic is because writes to `process.stdout` in Node.js
969
+ * are sometimes _asynchronous_ and may occur over multiple ticks of the Node.js
970
+ * event loop. Calling `process.exit()`, however, forces the process to exit _before_ those additional writes to `stdout` can be performed.
971
+ *
972
+ * Rather than calling `process.exit()` directly, the code _should_ set the `process.exitCode` and allow the process to exit naturally by avoiding
973
+ * scheduling any additional work for the event loop:
974
+ *
975
+ * ```js
976
+ * import process from 'node:process';
977
+ *
978
+ * // How to properly set the exit code while letting
979
+ * // the process exit gracefully.
980
+ * if (someConditionNotMet()) {
981
+ * printUsageToStdout();
982
+ * process.exitCode = 1;
983
+ * }
984
+ * ```
985
+ *
986
+ * If it is necessary to terminate the Node.js process due to an error condition,
987
+ * throwing an _uncaught_ error and allowing the process to terminate accordingly
988
+ * is safer than calling `process.exit()`.
989
+ *
990
+ * In `Worker` threads, this function stops the current thread rather
991
+ * than the current process.
992
+ * @since v0.1.13
993
+ * @param [code=0] The exit code. For string type, only integer strings (e.g.,'1') are allowed.
994
+ */
995
+ exit(code?: number | string | null): never;
996
+ /**
997
+ * A number which will be the process exit code, when the process either
998
+ * exits gracefully, or is exited via {@link exit} without specifying
999
+ * a code.
1000
+ *
1001
+ * Specifying a code to {@link exit} will override any
1002
+ * previous setting of `process.exitCode`.
1003
+ * @default undefined
1004
+ * @since v0.11.8
1005
+ */
1006
+ exitCode: number | string | null | undefined;
1007
+ finalization: {
1008
+ /**
1009
+ * This function registers a callback to be called when the process emits the `exit` event if the `ref` object was not garbage collected.
1010
+ * If the object `ref` was garbage collected before the `exit` event is emitted, the callback will be removed from the finalization registry, and it will not be called on process exit.
1011
+ *
1012
+ * Inside the callback you can release the resources allocated by the `ref` object.
1013
+ * Be aware that all limitations applied to the `beforeExit` event are also applied to the callback function,
1014
+ * this means that there is a possibility that the callback will not be called under special circumstances.
1015
+ *
1016
+ * The idea of ​​this function is to help you free up resources when the starts process exiting, but also let the object be garbage collected if it is no longer being used.
1017
+ * @param ref The reference to the resource that is being tracked.
1018
+ * @param callback The callback function to be called when the resource is finalized.
1019
+ * @since v22.5.0
1020
+ * @experimental
1021
+ */
1022
+ register<T extends object>(ref: T, callback: (ref: T, event: "exit") => void): void;
1023
+ /**
1024
+ * This function behaves exactly like the `register`, except that the callback will be called when the process emits the `beforeExit` event if `ref` object was not garbage collected.
1025
+ *
1026
+ * Be aware that all limitations applied to the `beforeExit` event are also applied to the callback function, this means that there is a possibility that the callback will not be called under special circumstances.
1027
+ * @param ref The reference to the resource that is being tracked.
1028
+ * @param callback The callback function to be called when the resource is finalized.
1029
+ * @since v22.5.0
1030
+ * @experimental
1031
+ */
1032
+ registerBeforeExit<T extends object>(ref: T, callback: (ref: T, event: "beforeExit") => void): void;
1033
+ /**
1034
+ * This function remove the register of the object from the finalization registry, so the callback will not be called anymore.
1035
+ * @param ref The reference to the resource that was registered previously.
1036
+ * @since v22.5.0
1037
+ * @experimental
1038
+ */
1039
+ unregister(ref: object): void;
1040
+ };
1041
+ /**
1042
+ * The `process.getActiveResourcesInfo()` method returns an array of strings containing
1043
+ * the types of the active resources that are currently keeping the event loop alive.
1044
+ *
1045
+ * ```js
1046
+ * import { getActiveResourcesInfo } from 'node:process';
1047
+ * import { setTimeout } from 'node:timers';
1048
+
1049
+ * console.log('Before:', getActiveResourcesInfo());
1050
+ * setTimeout(() => {}, 1000);
1051
+ * console.log('After:', getActiveResourcesInfo());
1052
+ * // Prints:
1053
+ * // Before: [ 'TTYWrap', 'TTYWrap', 'TTYWrap' ]
1054
+ * // After: [ 'TTYWrap', 'TTYWrap', 'TTYWrap', 'Timeout' ]
1055
+ * ```
1056
+ * @since v17.3.0, v16.14.0
1057
+ */
1058
+ getActiveResourcesInfo(): string[];
1059
+ /**
1060
+ * Provides a way to load built-in modules in a globally available function.
1061
+ * @param id ID of the built-in module being requested.
1062
+ */
1063
+ getBuiltinModule<ID extends keyof BuiltInModule>(id: ID): BuiltInModule[ID];
1064
+ getBuiltinModule(id: string): object | undefined;
1065
+ /**
1066
+ * The `process.getgid()` method returns the numerical group identity of the
1067
+ * process. (See [`getgid(2)`](http://man7.org/linux/man-pages/man2/getgid.2.html).)
1068
+ *
1069
+ * ```js
1070
+ * import process from 'node:process';
1071
+ *
1072
+ * if (process.getgid) {
1073
+ * console.log(`Current gid: ${process.getgid()}`);
1074
+ * }
1075
+ * ```
1076
+ *
1077
+ * This function is only available on POSIX platforms (i.e. not Windows or
1078
+ * Android).
1079
+ * @since v0.1.31
1080
+ */
1081
+ getgid?: () => number;
1082
+ /**
1083
+ * The `process.setgid()` method sets the group identity of the process. (See [`setgid(2)`](http://man7.org/linux/man-pages/man2/setgid.2.html).) The `id` can be passed as either a
1084
+ * numeric ID or a group name
1085
+ * string. If a group name is specified, this method blocks while resolving the
1086
+ * associated numeric ID.
1087
+ *
1088
+ * ```js
1089
+ * import process from 'node:process';
1090
+ *
1091
+ * if (process.getgid &#x26;&#x26; process.setgid) {
1092
+ * console.log(`Current gid: ${process.getgid()}`);
1093
+ * try {
1094
+ * process.setgid(501);
1095
+ * console.log(`New gid: ${process.getgid()}`);
1096
+ * } catch (err) {
1097
+ * console.log(`Failed to set gid: ${err}`);
1098
+ * }
1099
+ * }
1100
+ * ```
1101
+ *
1102
+ * This function is only available on POSIX platforms (i.e. not Windows or
1103
+ * Android).
1104
+ * This feature is not available in `Worker` threads.
1105
+ * @since v0.1.31
1106
+ * @param id The group name or ID
1107
+ */
1108
+ setgid?: (id: number | string) => void;
1109
+ /**
1110
+ * The `process.getuid()` method returns the numeric user identity of the process.
1111
+ * (See [`getuid(2)`](http://man7.org/linux/man-pages/man2/getuid.2.html).)
1112
+ *
1113
+ * ```js
1114
+ * import process from 'node:process';
1115
+ *
1116
+ * if (process.getuid) {
1117
+ * console.log(`Current uid: ${process.getuid()}`);
1118
+ * }
1119
+ * ```
1120
+ *
1121
+ * This function is only available on POSIX platforms (i.e. not Windows or
1122
+ * Android).
1123
+ * @since v0.1.28
1124
+ */
1125
+ getuid?: () => number;
1126
+ /**
1127
+ * The `process.setuid(id)` method sets the user identity of the process. (See [`setuid(2)`](http://man7.org/linux/man-pages/man2/setuid.2.html).) The `id` can be passed as either a
1128
+ * numeric ID or a username string.
1129
+ * If a username is specified, the method blocks while resolving the associated
1130
+ * numeric ID.
1131
+ *
1132
+ * ```js
1133
+ * import process from 'node:process';
1134
+ *
1135
+ * if (process.getuid &#x26;&#x26; process.setuid) {
1136
+ * console.log(`Current uid: ${process.getuid()}`);
1137
+ * try {
1138
+ * process.setuid(501);
1139
+ * console.log(`New uid: ${process.getuid()}`);
1140
+ * } catch (err) {
1141
+ * console.log(`Failed to set uid: ${err}`);
1142
+ * }
1143
+ * }
1144
+ * ```
1145
+ *
1146
+ * This function is only available on POSIX platforms (i.e. not Windows or
1147
+ * Android).
1148
+ * This feature is not available in `Worker` threads.
1149
+ * @since v0.1.28
1150
+ */
1151
+ setuid?: (id: number | string) => void;
1152
+ /**
1153
+ * The `process.geteuid()` method returns the numerical effective user identity of
1154
+ * the process. (See [`geteuid(2)`](http://man7.org/linux/man-pages/man2/geteuid.2.html).)
1155
+ *
1156
+ * ```js
1157
+ * import process from 'node:process';
1158
+ *
1159
+ * if (process.geteuid) {
1160
+ * console.log(`Current uid: ${process.geteuid()}`);
1161
+ * }
1162
+ * ```
1163
+ *
1164
+ * This function is only available on POSIX platforms (i.e. not Windows or
1165
+ * Android).
1166
+ * @since v2.0.0
1167
+ */
1168
+ geteuid?: () => number;
1169
+ /**
1170
+ * The `process.seteuid()` method sets the effective user identity of the process.
1171
+ * (See [`seteuid(2)`](http://man7.org/linux/man-pages/man2/seteuid.2.html).) The `id` can be passed as either a numeric ID or a username
1172
+ * string. If a username is specified, the method blocks while resolving the
1173
+ * associated numeric ID.
1174
+ *
1175
+ * ```js
1176
+ * import process from 'node:process';
1177
+ *
1178
+ * if (process.geteuid &#x26;&#x26; process.seteuid) {
1179
+ * console.log(`Current uid: ${process.geteuid()}`);
1180
+ * try {
1181
+ * process.seteuid(501);
1182
+ * console.log(`New uid: ${process.geteuid()}`);
1183
+ * } catch (err) {
1184
+ * console.log(`Failed to set uid: ${err}`);
1185
+ * }
1186
+ * }
1187
+ * ```
1188
+ *
1189
+ * This function is only available on POSIX platforms (i.e. not Windows or
1190
+ * Android).
1191
+ * This feature is not available in `Worker` threads.
1192
+ * @since v2.0.0
1193
+ * @param id A user name or ID
1194
+ */
1195
+ seteuid?: (id: number | string) => void;
1196
+ /**
1197
+ * The `process.getegid()` method returns the numerical effective group identity
1198
+ * of the Node.js process. (See [`getegid(2)`](http://man7.org/linux/man-pages/man2/getegid.2.html).)
1199
+ *
1200
+ * ```js
1201
+ * import process from 'node:process';
1202
+ *
1203
+ * if (process.getegid) {
1204
+ * console.log(`Current gid: ${process.getegid()}`);
1205
+ * }
1206
+ * ```
1207
+ *
1208
+ * This function is only available on POSIX platforms (i.e. not Windows or
1209
+ * Android).
1210
+ * @since v2.0.0
1211
+ */
1212
+ getegid?: () => number;
1213
+ /**
1214
+ * The `process.setegid()` method sets the effective group identity of the process.
1215
+ * (See [`setegid(2)`](http://man7.org/linux/man-pages/man2/setegid.2.html).) The `id` can be passed as either a numeric ID or a group
1216
+ * name string. If a group name is specified, this method blocks while resolving
1217
+ * the associated a numeric ID.
1218
+ *
1219
+ * ```js
1220
+ * import process from 'node:process';
1221
+ *
1222
+ * if (process.getegid &#x26;&#x26; process.setegid) {
1223
+ * console.log(`Current gid: ${process.getegid()}`);
1224
+ * try {
1225
+ * process.setegid(501);
1226
+ * console.log(`New gid: ${process.getegid()}`);
1227
+ * } catch (err) {
1228
+ * console.log(`Failed to set gid: ${err}`);
1229
+ * }
1230
+ * }
1231
+ * ```
1232
+ *
1233
+ * This function is only available on POSIX platforms (i.e. not Windows or
1234
+ * Android).
1235
+ * This feature is not available in `Worker` threads.
1236
+ * @since v2.0.0
1237
+ * @param id A group name or ID
1238
+ */
1239
+ setegid?: (id: number | string) => void;
1240
+ /**
1241
+ * The `process.getgroups()` method returns an array with the supplementary group
1242
+ * IDs. POSIX leaves it unspecified if the effective group ID is included but
1243
+ * Node.js ensures it always is.
1244
+ *
1245
+ * ```js
1246
+ * import process from 'node:process';
1247
+ *
1248
+ * if (process.getgroups) {
1249
+ * console.log(process.getgroups()); // [ 16, 21, 297 ]
1250
+ * }
1251
+ * ```
1252
+ *
1253
+ * This function is only available on POSIX platforms (i.e. not Windows or
1254
+ * Android).
1255
+ * @since v0.9.4
1256
+ */
1257
+ getgroups?: () => number[];
1258
+ /**
1259
+ * The `process.setgroups()` method sets the supplementary group IDs for the
1260
+ * Node.js process. This is a privileged operation that requires the Node.js
1261
+ * process to have `root` or the `CAP_SETGID` capability.
1262
+ *
1263
+ * The `groups` array can contain numeric group IDs, group names, or both.
1264
+ *
1265
+ * ```js
1266
+ * import process from 'node:process';
1267
+ *
1268
+ * if (process.getgroups &#x26;&#x26; process.setgroups) {
1269
+ * try {
1270
+ * process.setgroups([501]);
1271
+ * console.log(process.getgroups()); // new groups
1272
+ * } catch (err) {
1273
+ * console.log(`Failed to set groups: ${err}`);
1274
+ * }
1275
+ * }
1276
+ * ```
1277
+ *
1278
+ * This function is only available on POSIX platforms (i.e. not Windows or
1279
+ * Android).
1280
+ * This feature is not available in `Worker` threads.
1281
+ * @since v0.9.4
1282
+ */
1283
+ setgroups?: (groups: ReadonlyArray<string | number>) => void;
1284
+ /**
1285
+ * The `process.setUncaughtExceptionCaptureCallback()` function sets a function
1286
+ * that will be invoked when an uncaught exception occurs, which will receive the
1287
+ * exception value itself as its first argument.
1288
+ *
1289
+ * If such a function is set, the `'uncaughtException'` event will
1290
+ * not be emitted. If `--abort-on-uncaught-exception` was passed from the
1291
+ * command line or set through `v8.setFlagsFromString()`, the process will
1292
+ * not abort. Actions configured to take place on exceptions such as report
1293
+ * generations will be affected too
1294
+ *
1295
+ * To unset the capture function, `process.setUncaughtExceptionCaptureCallback(null)` may be used. Calling this
1296
+ * method with a non-`null` argument while another capture function is set will
1297
+ * throw an error.
1298
+ *
1299
+ * Using this function is mutually exclusive with using the deprecated `domain` built-in module.
1300
+ * @since v9.3.0
1301
+ */
1302
+ setUncaughtExceptionCaptureCallback(cb: ((err: Error) => void) | null): void;
1303
+ /**
1304
+ * Indicates whether a callback has been set using {@link setUncaughtExceptionCaptureCallback}.
1305
+ * @since v9.3.0
1306
+ */
1307
+ hasUncaughtExceptionCaptureCallback(): boolean;
1308
+ /**
1309
+ * The `process.sourceMapsEnabled` property returns whether the [Source Map v3](https://sourcemaps.info/spec.html) support for stack traces is enabled.
1310
+ * @since v20.7.0
1311
+ * @experimental
1312
+ */
1313
+ readonly sourceMapsEnabled: boolean;
1314
+ /**
1315
+ * This function enables or disables the [Source Map v3](https://sourcemaps.info/spec.html) support for
1316
+ * stack traces.
1317
+ *
1318
+ * It provides same features as launching Node.js process with commandline options `--enable-source-maps`.
1319
+ *
1320
+ * Only source maps in JavaScript files that are loaded after source maps has been
1321
+ * enabled will be parsed and loaded.
1322
+ * @since v16.6.0, v14.18.0
1323
+ * @experimental
1324
+ */
1325
+ setSourceMapsEnabled(value: boolean): void;
1326
+ /**
1327
+ * The `process.version` property contains the Node.js version string.
1328
+ *
1329
+ * ```js
1330
+ * import { version } from 'node:process';
1331
+ *
1332
+ * console.log(`Version: ${version}`);
1333
+ * // Version: v14.8.0
1334
+ * ```
1335
+ *
1336
+ * To get the version string without the prepended _v_, use`process.versions.node`.
1337
+ * @since v0.1.3
1338
+ */
1339
+ readonly version: string;
1340
+ /**
1341
+ * The `process.versions` property returns an object listing the version strings of
1342
+ * Node.js and its dependencies. `process.versions.modules` indicates the current
1343
+ * ABI version, which is increased whenever a C++ API changes. Node.js will refuse
1344
+ * to load modules that were compiled against a different module ABI version.
1345
+ *
1346
+ * ```js
1347
+ * import { versions } from 'node:process';
1348
+ *
1349
+ * console.log(versions);
1350
+ * ```
1351
+ *
1352
+ * Will generate an object similar to:
1353
+ *
1354
+ * ```console
1355
+ * { node: '20.2.0',
1356
+ * acorn: '8.8.2',
1357
+ * ada: '2.4.0',
1358
+ * ares: '1.19.0',
1359
+ * base64: '0.5.0',
1360
+ * brotli: '1.0.9',
1361
+ * cjs_module_lexer: '1.2.2',
1362
+ * cldr: '43.0',
1363
+ * icu: '73.1',
1364
+ * llhttp: '8.1.0',
1365
+ * modules: '115',
1366
+ * napi: '8',
1367
+ * nghttp2: '1.52.0',
1368
+ * nghttp3: '0.7.0',
1369
+ * ngtcp2: '0.8.1',
1370
+ * openssl: '3.0.8+quic',
1371
+ * simdutf: '3.2.9',
1372
+ * tz: '2023c',
1373
+ * undici: '5.22.0',
1374
+ * unicode: '15.0',
1375
+ * uv: '1.44.2',
1376
+ * uvwasi: '0.0.16',
1377
+ * v8: '11.3.244.8-node.9',
1378
+ * zlib: '1.2.13' }
1379
+ * ```
1380
+ * @since v0.2.0
1381
+ */
1382
+ readonly versions: ProcessVersions;
1383
+ /**
1384
+ * The `process.config` property returns a frozen `Object` containing the
1385
+ * JavaScript representation of the configure options used to compile the current
1386
+ * Node.js executable. This is the same as the `config.gypi` file that was produced
1387
+ * when running the `./configure` script.
1388
+ *
1389
+ * An example of the possible output looks like:
1390
+ *
1391
+ * ```js
1392
+ * {
1393
+ * target_defaults:
1394
+ * { cflags: [],
1395
+ * default_configuration: 'Release',
1396
+ * defines: [],
1397
+ * include_dirs: [],
1398
+ * libraries: [] },
1399
+ * variables:
1400
+ * {
1401
+ * host_arch: 'x64',
1402
+ * napi_build_version: 5,
1403
+ * node_install_npm: 'true',
1404
+ * node_prefix: '',
1405
+ * node_shared_cares: 'false',
1406
+ * node_shared_http_parser: 'false',
1407
+ * node_shared_libuv: 'false',
1408
+ * node_shared_zlib: 'false',
1409
+ * node_use_openssl: 'true',
1410
+ * node_shared_openssl: 'false',
1411
+ * strict_aliasing: 'true',
1412
+ * target_arch: 'x64',
1413
+ * v8_use_snapshot: 1
1414
+ * }
1415
+ * }
1416
+ * ```
1417
+ * @since v0.7.7
1418
+ */
1419
+ readonly config: ProcessConfig;
1420
+ /**
1421
+ * The `process.kill()` method sends the `signal` to the process identified by`pid`.
1422
+ *
1423
+ * Signal names are strings such as `'SIGINT'` or `'SIGHUP'`. See `Signal Events` and [`kill(2)`](http://man7.org/linux/man-pages/man2/kill.2.html) for more information.
1424
+ *
1425
+ * This method will throw an error if the target `pid` does not exist. As a special
1426
+ * case, a signal of `0` can be used to test for the existence of a process.
1427
+ * Windows platforms will throw an error if the `pid` is used to kill a process
1428
+ * group.
1429
+ *
1430
+ * Even though the name of this function is `process.kill()`, it is really just a
1431
+ * signal sender, like the `kill` system call. The signal sent may do something
1432
+ * other than kill the target process.
1433
+ *
1434
+ * ```js
1435
+ * import process, { kill } from 'node:process';
1436
+ *
1437
+ * process.on('SIGHUP', () => {
1438
+ * console.log('Got SIGHUP signal.');
1439
+ * });
1440
+ *
1441
+ * setTimeout(() => {
1442
+ * console.log('Exiting.');
1443
+ * process.exit(0);
1444
+ * }, 100);
1445
+ *
1446
+ * kill(process.pid, 'SIGHUP');
1447
+ * ```
1448
+ *
1449
+ * When `SIGUSR1` is received by a Node.js process, Node.js will start the
1450
+ * debugger. See `Signal Events`.
1451
+ * @since v0.0.6
1452
+ * @param pid A process ID
1453
+ * @param [signal='SIGTERM'] The signal to send, either as a string or number.
1454
+ */
1455
+ kill(pid: number, signal?: string | number): true;
1456
+ /**
1457
+ * Loads the environment configuration from a `.env` file into `process.env`. If
1458
+ * the file is not found, error will be thrown.
1459
+ *
1460
+ * To load a specific .env file by specifying its path, use the following code:
1461
+ *
1462
+ * ```js
1463
+ * import { loadEnvFile } from 'node:process';
1464
+ *
1465
+ * loadEnvFile('./development.env')
1466
+ * ```
1467
+ * @since v20.12.0
1468
+ * @param path The path to the .env file
1469
+ */
1470
+ loadEnvFile(path?: PathLike): void;
1471
+ /**
1472
+ * The `process.pid` property returns the PID of the process.
1473
+ *
1474
+ * ```js
1475
+ * import { pid } from 'node:process';
1476
+ *
1477
+ * console.log(`This process is pid ${pid}`);
1478
+ * ```
1479
+ * @since v0.1.15
1480
+ */
1481
+ readonly pid: number;
1482
+ /**
1483
+ * The `process.ppid` property returns the PID of the parent of the
1484
+ * current process.
1485
+ *
1486
+ * ```js
1487
+ * import { ppid } from 'node:process';
1488
+ *
1489
+ * console.log(`The parent process is pid ${ppid}`);
1490
+ * ```
1491
+ * @since v9.2.0, v8.10.0, v6.13.0
1492
+ */
1493
+ readonly ppid: number;
1494
+ /**
1495
+ * The `process.threadCpuUsage()` method returns the user and system CPU time usage of
1496
+ * the current worker thread, in an object with properties `user` and `system`, whose
1497
+ * values are microsecond values (millionth of a second).
1498
+ *
1499
+ * The result of a previous call to `process.threadCpuUsage()` can be passed as the
1500
+ * argument to the function, to get a diff reading.
1501
+ * @since v23.9.0
1502
+ * @param previousValue A previous return value from calling
1503
+ * `process.threadCpuUsage()`
1504
+ */
1505
+ threadCpuUsage(previousValue?: CpuUsage): CpuUsage;
1506
+ /**
1507
+ * The `process.title` property returns the current process title (i.e. returns
1508
+ * the current value of `ps`). Assigning a new value to `process.title` modifies
1509
+ * the current value of `ps`.
1510
+ *
1511
+ * When a new value is assigned, different platforms will impose different maximum
1512
+ * length restrictions on the title. Usually such restrictions are quite limited.
1513
+ * For instance, on Linux and macOS, `process.title` is limited to the size of the
1514
+ * binary name plus the length of the command-line arguments because setting the `process.title` overwrites the `argv` memory of the process. Node.js v0.8
1515
+ * allowed for longer process title strings by also overwriting the `environ` memory but that was potentially insecure and confusing in some (rather obscure)
1516
+ * cases.
1517
+ *
1518
+ * Assigning a value to `process.title` might not result in an accurate label
1519
+ * within process manager applications such as macOS Activity Monitor or Windows
1520
+ * Services Manager.
1521
+ * @since v0.1.104
1522
+ */
1523
+ title: string;
1524
+ /**
1525
+ * The operating system CPU architecture for which the Node.js binary was compiled.
1526
+ * Possible values are: `'arm'`, `'arm64'`, `'ia32'`, `'loong64'`, `'mips'`,
1527
+ * `'mipsel'`, `'ppc64'`, `'riscv64'`, `'s390x'`, and `'x64'`.
1528
+ *
1529
+ * ```js
1530
+ * import { arch } from 'node:process';
1531
+ *
1532
+ * console.log(`This processor architecture is ${arch}`);
1533
+ * ```
1534
+ * @since v0.5.0
1535
+ */
1536
+ readonly arch: Architecture;
1537
+ /**
1538
+ * The `process.platform` property returns a string identifying the operating
1539
+ * system platform for which the Node.js binary was compiled.
1540
+ *
1541
+ * Currently possible values are:
1542
+ *
1543
+ * * `'aix'`
1544
+ * * `'darwin'`
1545
+ * * `'freebsd'`
1546
+ * * `'linux'`
1547
+ * * `'openbsd'`
1548
+ * * `'sunos'`
1549
+ * * `'win32'`
1550
+ *
1551
+ * ```js
1552
+ * import { platform } from 'node:process';
1553
+ *
1554
+ * console.log(`This platform is ${platform}`);
1555
+ * ```
1556
+ *
1557
+ * The value `'android'` may also be returned if the Node.js is built on the
1558
+ * Android operating system. However, Android support in Node.js [is experimental](https://github.com/nodejs/node/blob/HEAD/BUILDING.md#androidandroid-based-devices-eg-firefox-os).
1559
+ * @since v0.1.16
1560
+ */
1561
+ readonly platform: Platform;
1562
+ /**
1563
+ * The `process.mainModule` property provides an alternative way of retrieving `require.main`. The difference is that if the main module changes at
1564
+ * runtime, `require.main` may still refer to the original main module in
1565
+ * modules that were required before the change occurred. Generally, it's
1566
+ * safe to assume that the two refer to the same module.
1567
+ *
1568
+ * As with `require.main`, `process.mainModule` will be `undefined` if there
1569
+ * is no entry script.
1570
+ * @since v0.1.17
1571
+ * @deprecated Since v14.0.0 - Use `main` instead.
1572
+ */
1573
+ mainModule?: Module;
1574
+ memoryUsage: MemoryUsageFn;
1575
+ /**
1576
+ * Gets the amount of memory available to the process (in bytes) based on
1577
+ * limits imposed by the OS. If there is no such constraint, or the constraint
1578
+ * is unknown, `0` is returned.
1579
+ *
1580
+ * See [`uv_get_constrained_memory`](https://docs.libuv.org/en/v1.x/misc.html#c.uv_get_constrained_memory) for more
1581
+ * information.
1582
+ * @since v19.6.0, v18.15.0
1583
+ */
1584
+ constrainedMemory(): number;
1585
+ /**
1586
+ * Gets the amount of free memory that is still available to the process (in bytes).
1587
+ * See [`uv_get_available_memory`](https://nodejs.org/docs/latest-v24.x/api/process.html#processavailablememory) for more information.
1588
+ * @since v20.13.0
1589
+ */
1590
+ availableMemory(): number;
1591
+ /**
1592
+ * The `process.cpuUsage()` method returns the user and system CPU time usage of
1593
+ * the current process, in an object with properties `user` and `system`, whose
1594
+ * values are microsecond values (millionth of a second). These values measure time
1595
+ * spent in user and system code respectively, and may end up being greater than
1596
+ * actual elapsed time if multiple CPU cores are performing work for this process.
1597
+ *
1598
+ * The result of a previous call to `process.cpuUsage()` can be passed as the
1599
+ * argument to the function, to get a diff reading.
1600
+ *
1601
+ * ```js
1602
+ * import { cpuUsage } from 'node:process';
1603
+ *
1604
+ * const startUsage = cpuUsage();
1605
+ * // { user: 38579, system: 6986 }
1606
+ *
1607
+ * // spin the CPU for 500 milliseconds
1608
+ * const now = Date.now();
1609
+ * while (Date.now() - now < 500);
1610
+ *
1611
+ * console.log(cpuUsage(startUsage));
1612
+ * // { user: 514883, system: 11226 }
1613
+ * ```
1614
+ * @since v6.1.0
1615
+ * @param previousValue A previous return value from calling `process.cpuUsage()`
1616
+ */
1617
+ cpuUsage(previousValue?: CpuUsage): CpuUsage;
1618
+ /**
1619
+ * `process.nextTick()` adds `callback` to the "next tick queue". This queue is
1620
+ * fully drained after the current operation on the JavaScript stack runs to
1621
+ * completion and before the event loop is allowed to continue. It's possible to
1622
+ * create an infinite loop if one were to recursively call `process.nextTick()`.
1623
+ * See the [Event Loop](https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/#process-nexttick) guide for more background.
1624
+ *
1625
+ * ```js
1626
+ * import { nextTick } from 'node:process';
1627
+ *
1628
+ * console.log('start');
1629
+ * nextTick(() => {
1630
+ * console.log('nextTick callback');
1631
+ * });
1632
+ * console.log('scheduled');
1633
+ * // Output:
1634
+ * // start
1635
+ * // scheduled
1636
+ * // nextTick callback
1637
+ * ```
1638
+ *
1639
+ * This is important when developing APIs in order to give users the opportunity
1640
+ * to assign event handlers _after_ an object has been constructed but before any
1641
+ * I/O has occurred:
1642
+ *
1643
+ * ```js
1644
+ * import { nextTick } from 'node:process';
1645
+ *
1646
+ * function MyThing(options) {
1647
+ * this.setupOptions(options);
1648
+ *
1649
+ * nextTick(() => {
1650
+ * this.startDoingStuff();
1651
+ * });
1652
+ * }
1653
+ *
1654
+ * const thing = new MyThing();
1655
+ * thing.getReadyForStuff();
1656
+ *
1657
+ * // thing.startDoingStuff() gets called now, not before.
1658
+ * ```
1659
+ *
1660
+ * It is very important for APIs to be either 100% synchronous or 100%
1661
+ * asynchronous. Consider this example:
1662
+ *
1663
+ * ```js
1664
+ * // WARNING! DO NOT USE! BAD UNSAFE HAZARD!
1665
+ * function maybeSync(arg, cb) {
1666
+ * if (arg) {
1667
+ * cb();
1668
+ * return;
1669
+ * }
1670
+ *
1671
+ * fs.stat('file', cb);
1672
+ * }
1673
+ * ```
1674
+ *
1675
+ * This API is hazardous because in the following case:
1676
+ *
1677
+ * ```js
1678
+ * const maybeTrue = Math.random() > 0.5;
1679
+ *
1680
+ * maybeSync(maybeTrue, () => {
1681
+ * foo();
1682
+ * });
1683
+ *
1684
+ * bar();
1685
+ * ```
1686
+ *
1687
+ * It is not clear whether `foo()` or `bar()` will be called first.
1688
+ *
1689
+ * The following approach is much better:
1690
+ *
1691
+ * ```js
1692
+ * import { nextTick } from 'node:process';
1693
+ *
1694
+ * function definitelyAsync(arg, cb) {
1695
+ * if (arg) {
1696
+ * nextTick(cb);
1697
+ * return;
1698
+ * }
1699
+ *
1700
+ * fs.stat('file', cb);
1701
+ * }
1702
+ * ```
1703
+ * @since v0.1.26
1704
+ * @param args Additional arguments to pass when invoking the `callback`
1705
+ */
1706
+ nextTick(callback: Function, ...args: any[]): void;
1707
+ /**
1708
+ * This API is available through the [--permission](https://nodejs.org/api/cli.html#--permission) flag.
1709
+ *
1710
+ * `process.permission` is an object whose methods are used to manage permissions for the current process.
1711
+ * Additional documentation is available in the [Permission Model](https://nodejs.org/api/permissions.html#permission-model).
1712
+ * @since v20.0.0
1713
+ */
1714
+ permission: ProcessPermission;
1715
+ /**
1716
+ * The `process.release` property returns an `Object` containing metadata related
1717
+ * to the current release, including URLs for the source tarball and headers-only
1718
+ * tarball.
1719
+ *
1720
+ * `process.release` contains the following properties:
1721
+ *
1722
+ * ```js
1723
+ * {
1724
+ * name: 'node',
1725
+ * lts: 'Hydrogen',
1726
+ * sourceUrl: 'https://nodejs.org/download/release/v18.12.0/node-v18.12.0.tar.gz',
1727
+ * headersUrl: 'https://nodejs.org/download/release/v18.12.0/node-v18.12.0-headers.tar.gz',
1728
+ * libUrl: 'https://nodejs.org/download/release/v18.12.0/win-x64/node.lib'
1729
+ * }
1730
+ * ```
1731
+ *
1732
+ * In custom builds from non-release versions of the source tree, only the `name` property may be present. The additional properties should not be
1733
+ * relied upon to exist.
1734
+ * @since v3.0.0
1735
+ */
1736
+ readonly release: ProcessRelease;
1737
+ readonly features: ProcessFeatures;
1738
+ /**
1739
+ * `process.umask()` returns the Node.js process's file mode creation mask. Child
1740
+ * processes inherit the mask from the parent process.
1741
+ * @since v0.1.19
1742
+ * @deprecated Calling `process.umask()` with no argument causes the process-wide umask to be written twice. This introduces a race condition between threads, and is a potential
1743
+ * security vulnerability. There is no safe, cross-platform alternative API.
1744
+ */
1745
+ umask(): number;
1746
+ /**
1747
+ * Can only be set if not in worker thread.
1748
+ */
1749
+ umask(mask: string | number): number;
1750
+ /**
1751
+ * The `process.uptime()` method returns the number of seconds the current Node.js
1752
+ * process has been running.
1753
+ *
1754
+ * The return value includes fractions of a second. Use `Math.floor()` to get whole
1755
+ * seconds.
1756
+ * @since v0.5.0
1757
+ */
1758
+ uptime(): number;
1759
+ hrtime: HRTime;
1760
+ /**
1761
+ * If the Node.js process was spawned with an IPC channel, the process.channel property is a reference to the IPC channel.
1762
+ * If no IPC channel exists, this property is undefined.
1763
+ * @since v7.1.0
1764
+ */
1765
+ channel?: Control;
1766
+ /**
1767
+ * If Node.js is spawned with an IPC channel, the `process.send()` method can be
1768
+ * used to send messages to the parent process. Messages will be received as a `'message'` event on the parent's `ChildProcess` object.
1769
+ *
1770
+ * If Node.js was not spawned with an IPC channel, `process.send` will be `undefined`.
1771
+ *
1772
+ * The message goes through serialization and parsing. The resulting message might
1773
+ * not be the same as what is originally sent.
1774
+ * @since v0.5.9
1775
+ * @param options used to parameterize the sending of certain types of handles. `options` supports the following properties:
1776
+ */
1777
+ send?(
1778
+ message: any,
1779
+ sendHandle?: SendHandle,
1780
+ options?: MessageOptions,
1781
+ callback?: (error: Error | null) => void,
1782
+ ): boolean;
1783
+ /**
1784
+ * If the Node.js process is spawned with an IPC channel (see the `Child Process` and `Cluster` documentation), the `process.disconnect()` method will close the
1785
+ * IPC channel to the parent process, allowing the child process to exit gracefully
1786
+ * once there are no other connections keeping it alive.
1787
+ *
1788
+ * The effect of calling `process.disconnect()` is the same as calling `ChildProcess.disconnect()` from the parent process.
1789
+ *
1790
+ * If the Node.js process was not spawned with an IPC channel, `process.disconnect()` will be `undefined`.
1791
+ * @since v0.7.2
1792
+ */
1793
+ disconnect(): void;
1794
+ /**
1795
+ * If the Node.js process is spawned with an IPC channel (see the `Child Process` and `Cluster` documentation), the `process.connected` property will return `true` so long as the IPC
1796
+ * channel is connected and will return `false` after `process.disconnect()` is called.
1797
+ *
1798
+ * Once `process.connected` is `false`, it is no longer possible to send messages
1799
+ * over the IPC channel using `process.send()`.
1800
+ * @since v0.7.2
1801
+ */
1802
+ connected: boolean;
1803
+ /**
1804
+ * The `process.allowedNodeEnvironmentFlags` property is a special,
1805
+ * read-only `Set` of flags allowable within the `NODE_OPTIONS` environment variable.
1806
+ *
1807
+ * `process.allowedNodeEnvironmentFlags` extends `Set`, but overrides `Set.prototype.has` to recognize several different possible flag
1808
+ * representations. `process.allowedNodeEnvironmentFlags.has()` will
1809
+ * return `true` in the following cases:
1810
+ *
1811
+ * * Flags may omit leading single (`-`) or double (`--`) dashes; e.g., `inspect-brk` for `--inspect-brk`, or `r` for `-r`.
1812
+ * * Flags passed through to V8 (as listed in `--v8-options`) may replace
1813
+ * one or more _non-leading_ dashes for an underscore, or vice-versa;
1814
+ * e.g., `--perf_basic_prof`, `--perf-basic-prof`, `--perf_basic-prof`,
1815
+ * etc.
1816
+ * * Flags may contain one or more equals (`=`) characters; all
1817
+ * characters after and including the first equals will be ignored;
1818
+ * e.g., `--stack-trace-limit=100`.
1819
+ * * Flags _must_ be allowable within `NODE_OPTIONS`.
1820
+ *
1821
+ * When iterating over `process.allowedNodeEnvironmentFlags`, flags will
1822
+ * appear only _once_; each will begin with one or more dashes. Flags
1823
+ * passed through to V8 will contain underscores instead of non-leading
1824
+ * dashes:
1825
+ *
1826
+ * ```js
1827
+ * import { allowedNodeEnvironmentFlags } from 'node:process';
1828
+ *
1829
+ * allowedNodeEnvironmentFlags.forEach((flag) => {
1830
+ * // -r
1831
+ * // --inspect-brk
1832
+ * // --abort_on_uncaught_exception
1833
+ * // ...
1834
+ * });
1835
+ * ```
1836
+ *
1837
+ * The methods `add()`, `clear()`, and `delete()` of`process.allowedNodeEnvironmentFlags` do nothing, and will fail
1838
+ * silently.
1839
+ *
1840
+ * If Node.js was compiled _without_ `NODE_OPTIONS` support (shown in {@link config}), `process.allowedNodeEnvironmentFlags` will
1841
+ * contain what _would have_ been allowable.
1842
+ * @since v10.10.0
1843
+ */
1844
+ allowedNodeEnvironmentFlags: ReadonlySet<string>;
1845
+ /**
1846
+ * `process.report` is an object whose methods are used to generate diagnostic reports for the current process.
1847
+ * Additional documentation is available in the [report documentation](https://nodejs.org/docs/latest-v24.x/api/report.html).
1848
+ * @since v11.8.0
1849
+ */
1850
+ report: ProcessReport;
1851
+ /**
1852
+ * ```js
1853
+ * import { resourceUsage } from 'node:process';
1854
+ *
1855
+ * console.log(resourceUsage());
1856
+ * /*
1857
+ * Will output:
1858
+ * {
1859
+ * userCPUTime: 82872,
1860
+ * systemCPUTime: 4143,
1861
+ * maxRSS: 33164,
1862
+ * sharedMemorySize: 0,
1863
+ * unsharedDataSize: 0,
1864
+ * unsharedStackSize: 0,
1865
+ * minorPageFault: 2469,
1866
+ * majorPageFault: 0,
1867
+ * swappedOut: 0,
1868
+ * fsRead: 0,
1869
+ * fsWrite: 8,
1870
+ * ipcSent: 0,
1871
+ * ipcReceived: 0,
1872
+ * signalsCount: 0,
1873
+ * voluntaryContextSwitches: 79,
1874
+ * involuntaryContextSwitches: 1
1875
+ * }
1876
+ *
1877
+ * ```
1878
+ * @since v12.6.0
1879
+ * @return the resource usage for the current process. All of these values come from the `uv_getrusage` call which returns a [`uv_rusage_t` struct][uv_rusage_t].
1880
+ */
1881
+ resourceUsage(): ResourceUsage;
1882
+ /**
1883
+ * The initial value of `process.throwDeprecation` indicates whether the `--throw-deprecation` flag is set on the current Node.js process. `process.throwDeprecation`
1884
+ * is mutable, so whether or not deprecation warnings result in errors may be altered at runtime. See the documentation for the 'warning' event and the emitWarning()
1885
+ * method for more information.
1886
+ *
1887
+ * ```bash
1888
+ * $ node --throw-deprecation -p "process.throwDeprecation"
1889
+ * true
1890
+ * $ node -p "process.throwDeprecation"
1891
+ * undefined
1892
+ * $ node
1893
+ * > process.emitWarning('test', 'DeprecationWarning');
1894
+ * undefined
1895
+ * > (node:26598) DeprecationWarning: test
1896
+ * > process.throwDeprecation = true;
1897
+ * true
1898
+ * > process.emitWarning('test', 'DeprecationWarning');
1899
+ * Thrown:
1900
+ * [DeprecationWarning: test] { name: 'DeprecationWarning' }
1901
+ * ```
1902
+ * @since v0.9.12
1903
+ */
1904
+ throwDeprecation: boolean;
1905
+ /**
1906
+ * The `process.traceDeprecation` property indicates whether the `--trace-deprecation` flag is set on the current Node.js process. See the
1907
+ * documentation for the `'warning' event` and the `emitWarning() method` for more information about this
1908
+ * flag's behavior.
1909
+ * @since v0.8.0
1910
+ */
1911
+ traceDeprecation: boolean;
1912
+ /**
1913
+ * An object is "refable" if it implements the Node.js "Refable protocol".
1914
+ * Specifically, this means that the object implements the `Symbol.for('nodejs.ref')`
1915
+ * and `Symbol.for('nodejs.unref')` methods. "Ref'd" objects will keep the Node.js
1916
+ * event loop alive, while "unref'd" objects will not. Historically, this was
1917
+ * implemented by using `ref()` and `unref()` methods directly on the objects.
1918
+ * This pattern, however, is being deprecated in favor of the "Refable protocol"
1919
+ * in order to better support Web Platform API types whose APIs cannot be modified
1920
+ * to add `ref()` and `unref()` methods but still need to support that behavior.
1921
+ * @since v22.14.0
1922
+ * @experimental
1923
+ * @param maybeRefable An object that may be "refable".
1924
+ */
1925
+ ref(maybeRefable: any): void;
1926
+ /**
1927
+ * An object is "unrefable" if it implements the Node.js "Refable protocol".
1928
+ * Specifically, this means that the object implements the `Symbol.for('nodejs.ref')`
1929
+ * and `Symbol.for('nodejs.unref')` methods. "Ref'd" objects will keep the Node.js
1930
+ * event loop alive, while "unref'd" objects will not. Historically, this was
1931
+ * implemented by using `ref()` and `unref()` methods directly on the objects.
1932
+ * This pattern, however, is being deprecated in favor of the "Refable protocol"
1933
+ * in order to better support Web Platform API types whose APIs cannot be modified
1934
+ * to add `ref()` and `unref()` methods but still need to support that behavior.
1935
+ * @since v22.14.0
1936
+ * @experimental
1937
+ * @param maybeRefable An object that may be "unref'd".
1938
+ */
1939
+ unref(maybeRefable: any): void;
1940
+ /**
1941
+ * Replaces the current process with a new process.
1942
+ *
1943
+ * This is achieved by using the `execve` POSIX function and therefore no memory or other
1944
+ * resources from the current process are preserved, except for the standard input,
1945
+ * standard output and standard error file descriptor.
1946
+ *
1947
+ * All other resources are discarded by the system when the processes are swapped, without triggering
1948
+ * any exit or close events and without running any cleanup handler.
1949
+ *
1950
+ * This function will never return, unless an error occurred.
1951
+ *
1952
+ * This function is not available on Windows or IBM i.
1953
+ * @since v22.15.0
1954
+ * @experimental
1955
+ * @param file The name or path of the executable file to run.
1956
+ * @param args List of string arguments. No argument can contain a null-byte (`\u0000`).
1957
+ * @param env Environment key-value pairs.
1958
+ * No key or value can contain a null-byte (`\u0000`).
1959
+ * **Default:** `process.env`.
1960
+ */
1961
+ execve?(file: string, args?: readonly string[], env?: ProcessEnv): never;
1962
+ /* EventEmitter */
1963
+ addListener(event: "beforeExit", listener: BeforeExitListener): this;
1964
+ addListener(event: "disconnect", listener: DisconnectListener): this;
1965
+ addListener(event: "exit", listener: ExitListener): this;
1966
+ addListener(event: "rejectionHandled", listener: RejectionHandledListener): this;
1967
+ addListener(event: "uncaughtException", listener: UncaughtExceptionListener): this;
1968
+ addListener(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this;
1969
+ addListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
1970
+ addListener(event: "warning", listener: WarningListener): this;
1971
+ addListener(event: "message", listener: MessageListener): this;
1972
+ addListener(event: "workerMessage", listener: (value: any, source: number) => void): this;
1973
+ addListener(event: Signals, listener: SignalsListener): this;
1974
+ addListener(event: "multipleResolves", listener: MultipleResolveListener): this;
1975
+ addListener(event: "worker", listener: WorkerListener): this;
1976
+ emit(event: "beforeExit", code: number): boolean;
1977
+ emit(event: "disconnect"): boolean;
1978
+ emit(event: "exit", code: number): boolean;
1979
+ emit(event: "rejectionHandled", promise: Promise<unknown>): boolean;
1980
+ emit(event: "uncaughtException", error: Error): boolean;
1981
+ emit(event: "uncaughtExceptionMonitor", error: Error): boolean;
1982
+ emit(event: "unhandledRejection", reason: unknown, promise: Promise<unknown>): boolean;
1983
+ emit(event: "warning", warning: Error): boolean;
1984
+ emit(event: "message", message: unknown, sendHandle: SendHandle): this;
1985
+ emit(event: "workerMessage", value: any, source: number): this;
1986
+ emit(event: Signals, signal?: Signals): boolean;
1987
+ emit(
1988
+ event: "multipleResolves",
1989
+ type: MultipleResolveType,
1990
+ promise: Promise<unknown>,
1991
+ value: unknown,
1992
+ ): this;
1993
+ emit(event: "worker", listener: WorkerListener): this;
1994
+ on(event: "beforeExit", listener: BeforeExitListener): this;
1995
+ on(event: "disconnect", listener: DisconnectListener): this;
1996
+ on(event: "exit", listener: ExitListener): this;
1997
+ on(event: "rejectionHandled", listener: RejectionHandledListener): this;
1998
+ on(event: "uncaughtException", listener: UncaughtExceptionListener): this;
1999
+ on(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this;
2000
+ on(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
2001
+ on(event: "warning", listener: WarningListener): this;
2002
+ on(event: "message", listener: MessageListener): this;
2003
+ on(event: "workerMessage", listener: (value: any, source: number) => void): this;
2004
+ on(event: Signals, listener: SignalsListener): this;
2005
+ on(event: "multipleResolves", listener: MultipleResolveListener): this;
2006
+ on(event: "worker", listener: WorkerListener): this;
2007
+ on(event: string | symbol, listener: (...args: any[]) => void): this;
2008
+ once(event: "beforeExit", listener: BeforeExitListener): this;
2009
+ once(event: "disconnect", listener: DisconnectListener): this;
2010
+ once(event: "exit", listener: ExitListener): this;
2011
+ once(event: "rejectionHandled", listener: RejectionHandledListener): this;
2012
+ once(event: "uncaughtException", listener: UncaughtExceptionListener): this;
2013
+ once(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this;
2014
+ once(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
2015
+ once(event: "warning", listener: WarningListener): this;
2016
+ once(event: "message", listener: MessageListener): this;
2017
+ once(event: "workerMessage", listener: (value: any, source: number) => void): this;
2018
+ once(event: Signals, listener: SignalsListener): this;
2019
+ once(event: "multipleResolves", listener: MultipleResolveListener): this;
2020
+ once(event: "worker", listener: WorkerListener): this;
2021
+ once(event: string | symbol, listener: (...args: any[]) => void): this;
2022
+ prependListener(event: "beforeExit", listener: BeforeExitListener): this;
2023
+ prependListener(event: "disconnect", listener: DisconnectListener): this;
2024
+ prependListener(event: "exit", listener: ExitListener): this;
2025
+ prependListener(event: "rejectionHandled", listener: RejectionHandledListener): this;
2026
+ prependListener(event: "uncaughtException", listener: UncaughtExceptionListener): this;
2027
+ prependListener(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this;
2028
+ prependListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
2029
+ prependListener(event: "warning", listener: WarningListener): this;
2030
+ prependListener(event: "message", listener: MessageListener): this;
2031
+ prependListener(event: "workerMessage", listener: (value: any, source: number) => void): this;
2032
+ prependListener(event: Signals, listener: SignalsListener): this;
2033
+ prependListener(event: "multipleResolves", listener: MultipleResolveListener): this;
2034
+ prependListener(event: "worker", listener: WorkerListener): this;
2035
+ prependOnceListener(event: "beforeExit", listener: BeforeExitListener): this;
2036
+ prependOnceListener(event: "disconnect", listener: DisconnectListener): this;
2037
+ prependOnceListener(event: "exit", listener: ExitListener): this;
2038
+ prependOnceListener(event: "rejectionHandled", listener: RejectionHandledListener): this;
2039
+ prependOnceListener(event: "uncaughtException", listener: UncaughtExceptionListener): this;
2040
+ prependOnceListener(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this;
2041
+ prependOnceListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
2042
+ prependOnceListener(event: "warning", listener: WarningListener): this;
2043
+ prependOnceListener(event: "message", listener: MessageListener): this;
2044
+ prependOnceListener(event: "workerMessage", listener: (value: any, source: number) => void): this;
2045
+ prependOnceListener(event: Signals, listener: SignalsListener): this;
2046
+ prependOnceListener(event: "multipleResolves", listener: MultipleResolveListener): this;
2047
+ prependOnceListener(event: "worker", listener: WorkerListener): this;
2048
+ listeners(event: "beforeExit"): BeforeExitListener[];
2049
+ listeners(event: "disconnect"): DisconnectListener[];
2050
+ listeners(event: "exit"): ExitListener[];
2051
+ listeners(event: "rejectionHandled"): RejectionHandledListener[];
2052
+ listeners(event: "uncaughtException"): UncaughtExceptionListener[];
2053
+ listeners(event: "uncaughtExceptionMonitor"): UncaughtExceptionListener[];
2054
+ listeners(event: "unhandledRejection"): UnhandledRejectionListener[];
2055
+ listeners(event: "warning"): WarningListener[];
2056
+ listeners(event: "message"): MessageListener[];
2057
+ listeners(event: "workerMessage"): ((value: any, source: number) => void)[];
2058
+ listeners(event: Signals): SignalsListener[];
2059
+ listeners(event: "multipleResolves"): MultipleResolveListener[];
2060
+ listeners(event: "worker"): WorkerListener[];
2061
+ }
2062
+ }
2063
+ }
2064
+ export = process;
2065
+ }
2066
+ declare module "node:process" {
2067
+ import process = require("process");
2068
+ export = process;
2069
+ }