korveniq 1.0.1 → 1.0.2

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 (519) hide show
  1. package/bin/index.js +1 -1
  2. package/lib/build-profile.json +5 -0
  3. package/lib/chat.js +3 -1
  4. package/lib/endpoints.js +8 -5
  5. package/lib/select-menu.js +154 -0
  6. package/lib/tools.js +13 -0
  7. package/lib/utils.js +12 -0
  8. package/node_modules/@socket.io/component-emitter/LICENSE +24 -0
  9. package/node_modules/@socket.io/component-emitter/Readme.md +79 -0
  10. package/node_modules/@socket.io/component-emitter/lib/cjs/index.d.ts +179 -0
  11. package/node_modules/@socket.io/component-emitter/lib/cjs/index.js +176 -0
  12. package/node_modules/@socket.io/component-emitter/lib/cjs/package.json +4 -0
  13. package/node_modules/@socket.io/component-emitter/lib/esm/index.d.ts +179 -0
  14. package/node_modules/@socket.io/component-emitter/lib/esm/index.js +169 -0
  15. package/node_modules/@socket.io/component-emitter/lib/esm/package.json +4 -0
  16. package/node_modules/@socket.io/component-emitter/package.json +28 -0
  17. package/node_modules/ansi-regex/index.d.ts +37 -0
  18. package/node_modules/ansi-regex/index.js +10 -0
  19. package/node_modules/ansi-regex/license +9 -0
  20. package/node_modules/ansi-regex/package.json +55 -0
  21. package/node_modules/ansi-regex/readme.md +78 -0
  22. package/node_modules/ansi-styles/index.d.ts +345 -0
  23. package/node_modules/ansi-styles/index.js +163 -0
  24. package/node_modules/ansi-styles/license +9 -0
  25. package/node_modules/ansi-styles/package.json +56 -0
  26. package/node_modules/ansi-styles/readme.md +152 -0
  27. package/node_modules/base64-js/LICENSE +21 -0
  28. package/node_modules/base64-js/README.md +34 -0
  29. package/node_modules/base64-js/base64js.min.js +1 -0
  30. package/node_modules/base64-js/index.d.ts +3 -0
  31. package/node_modules/base64-js/index.js +150 -0
  32. package/node_modules/base64-js/package.json +47 -0
  33. package/node_modules/bl/.travis.yml +17 -0
  34. package/node_modules/bl/BufferList.js +396 -0
  35. package/node_modules/bl/LICENSE.md +13 -0
  36. package/node_modules/bl/README.md +247 -0
  37. package/node_modules/bl/bl.js +84 -0
  38. package/node_modules/bl/package.json +37 -0
  39. package/node_modules/bl/test/convert.js +21 -0
  40. package/node_modules/bl/test/indexOf.js +492 -0
  41. package/node_modules/bl/test/isBufferList.js +32 -0
  42. package/node_modules/bl/test/test.js +869 -0
  43. package/node_modules/buffer/AUTHORS.md +70 -0
  44. package/node_modules/buffer/LICENSE +21 -0
  45. package/node_modules/buffer/README.md +410 -0
  46. package/node_modules/buffer/index.d.ts +186 -0
  47. package/node_modules/buffer/index.js +1817 -0
  48. package/node_modules/buffer/package.json +96 -0
  49. package/node_modules/chalk/index.d.ts +415 -0
  50. package/node_modules/chalk/license +9 -0
  51. package/node_modules/chalk/package.json +68 -0
  52. package/node_modules/chalk/readme.md +341 -0
  53. package/node_modules/chalk/source/index.js +229 -0
  54. package/node_modules/chalk/source/templates.js +134 -0
  55. package/node_modules/chalk/source/util.js +39 -0
  56. package/node_modules/cli-cursor/index.d.ts +45 -0
  57. package/node_modules/cli-cursor/index.js +35 -0
  58. package/node_modules/cli-cursor/license +9 -0
  59. package/node_modules/cli-cursor/package.json +46 -0
  60. package/node_modules/cli-cursor/readme.md +55 -0
  61. package/node_modules/cli-spinners/index.d.ts +128 -0
  62. package/node_modules/cli-spinners/index.js +15 -0
  63. package/node_modules/cli-spinners/license +9 -0
  64. package/node_modules/cli-spinners/package.json +50 -0
  65. package/node_modules/cli-spinners/readme.md +54 -0
  66. package/node_modules/cli-spinners/spinners.json +1622 -0
  67. package/node_modules/clone/.npmignore +4 -0
  68. package/node_modules/clone/LICENSE +18 -0
  69. package/node_modules/clone/README.md +126 -0
  70. package/node_modules/clone/clone.iml +10 -0
  71. package/node_modules/clone/clone.js +166 -0
  72. package/node_modules/clone/package.json +51 -0
  73. package/node_modules/color-convert/CHANGELOG.md +54 -0
  74. package/node_modules/color-convert/LICENSE +21 -0
  75. package/node_modules/color-convert/README.md +68 -0
  76. package/node_modules/color-convert/conversions.js +839 -0
  77. package/node_modules/color-convert/index.js +81 -0
  78. package/node_modules/color-convert/package.json +48 -0
  79. package/node_modules/color-convert/route.js +97 -0
  80. package/node_modules/color-name/LICENSE +8 -0
  81. package/node_modules/color-name/README.md +11 -0
  82. package/node_modules/color-name/index.js +152 -0
  83. package/node_modules/color-name/package.json +28 -0
  84. package/node_modules/commander/LICENSE +22 -0
  85. package/node_modules/commander/Readme.md +1157 -0
  86. package/node_modules/commander/esm.mjs +16 -0
  87. package/node_modules/commander/index.js +24 -0
  88. package/node_modules/commander/lib/argument.js +149 -0
  89. package/node_modules/commander/lib/command.js +2509 -0
  90. package/node_modules/commander/lib/error.js +39 -0
  91. package/node_modules/commander/lib/help.js +520 -0
  92. package/node_modules/commander/lib/option.js +330 -0
  93. package/node_modules/commander/lib/suggestSimilar.js +101 -0
  94. package/node_modules/commander/package-support.json +16 -0
  95. package/node_modules/commander/package.json +84 -0
  96. package/node_modules/commander/typings/esm.d.mts +3 -0
  97. package/node_modules/commander/typings/index.d.ts +969 -0
  98. package/node_modules/debug/LICENSE +20 -0
  99. package/node_modules/debug/README.md +481 -0
  100. package/node_modules/debug/package.json +60 -0
  101. package/node_modules/debug/src/browser.js +271 -0
  102. package/node_modules/debug/src/common.js +274 -0
  103. package/node_modules/debug/src/index.js +10 -0
  104. package/node_modules/debug/src/node.js +263 -0
  105. package/node_modules/defaults/LICENSE +22 -0
  106. package/node_modules/defaults/README.md +39 -0
  107. package/node_modules/defaults/index.js +13 -0
  108. package/node_modules/defaults/package.json +33 -0
  109. package/node_modules/defaults/test.js +34 -0
  110. package/node_modules/define-lazy-prop/index.d.ts +33 -0
  111. package/node_modules/define-lazy-prop/index.js +19 -0
  112. package/node_modules/define-lazy-prop/license +9 -0
  113. package/node_modules/define-lazy-prop/package.json +48 -0
  114. package/node_modules/define-lazy-prop/readme.md +64 -0
  115. package/node_modules/engine.io-client/LICENSE +22 -0
  116. package/node_modules/engine.io-client/README.md +331 -0
  117. package/node_modules/engine.io-client/build/cjs/browser-entrypoint.d.ts +3 -0
  118. package/node_modules/engine.io-client/build/cjs/browser-entrypoint.js +4 -0
  119. package/node_modules/engine.io-client/build/cjs/contrib/has-cors.d.ts +1 -0
  120. package/node_modules/engine.io-client/build/cjs/contrib/has-cors.js +14 -0
  121. package/node_modules/engine.io-client/build/cjs/contrib/parseqs.d.ts +15 -0
  122. package/node_modules/engine.io-client/build/cjs/contrib/parseqs.js +38 -0
  123. package/node_modules/engine.io-client/build/cjs/contrib/parseuri.d.ts +1 -0
  124. package/node_modules/engine.io-client/build/cjs/contrib/parseuri.js +67 -0
  125. package/node_modules/engine.io-client/build/cjs/globals.d.ts +4 -0
  126. package/node_modules/engine.io-client/build/cjs/globals.js +26 -0
  127. package/node_modules/engine.io-client/build/cjs/globals.node.d.ts +20 -0
  128. package/node_modules/engine.io-client/build/cjs/globals.node.js +97 -0
  129. package/node_modules/engine.io-client/build/cjs/index.d.ts +15 -0
  130. package/node_modules/engine.io-client/build/cjs/index.js +29 -0
  131. package/node_modules/engine.io-client/build/cjs/package.json +10 -0
  132. package/node_modules/engine.io-client/build/cjs/socket.d.ts +439 -0
  133. package/node_modules/engine.io-client/build/cjs/socket.js +698 -0
  134. package/node_modules/engine.io-client/build/cjs/transport.d.ts +106 -0
  135. package/node_modules/engine.io-client/build/cjs/transport.js +153 -0
  136. package/node_modules/engine.io-client/build/cjs/transports/index.d.ts +8 -0
  137. package/node_modules/engine.io-client/build/cjs/transports/index.js +11 -0
  138. package/node_modules/engine.io-client/build/cjs/transports/polling-fetch.d.ts +15 -0
  139. package/node_modules/engine.io-client/build/cjs/transports/polling-fetch.js +60 -0
  140. package/node_modules/engine.io-client/build/cjs/transports/polling-xhr.d.ts +108 -0
  141. package/node_modules/engine.io-client/build/cjs/transports/polling-xhr.js +285 -0
  142. package/node_modules/engine.io-client/build/cjs/transports/polling-xhr.node.d.ts +11 -0
  143. package/node_modules/engine.io-client/build/cjs/transports/polling-xhr.node.js +54 -0
  144. package/node_modules/engine.io-client/build/cjs/transports/polling.d.ts +52 -0
  145. package/node_modules/engine.io-client/build/cjs/transports/polling.js +165 -0
  146. package/node_modules/engine.io-client/build/cjs/transports/websocket.d.ts +36 -0
  147. package/node_modules/engine.io-client/build/cjs/transports/websocket.js +136 -0
  148. package/node_modules/engine.io-client/build/cjs/transports/websocket.node.d.ts +14 -0
  149. package/node_modules/engine.io-client/build/cjs/transports/websocket.node.js +78 -0
  150. package/node_modules/engine.io-client/build/cjs/transports/webtransport.d.ts +18 -0
  151. package/node_modules/engine.io-client/build/cjs/transports/webtransport.js +94 -0
  152. package/node_modules/engine.io-client/build/cjs/util.d.ts +7 -0
  153. package/node_modules/engine.io-client/build/cjs/util.js +65 -0
  154. package/node_modules/engine.io-client/build/esm/browser-entrypoint.d.ts +3 -0
  155. package/node_modules/engine.io-client/build/esm/browser-entrypoint.js +2 -0
  156. package/node_modules/engine.io-client/build/esm/contrib/has-cors.d.ts +1 -0
  157. package/node_modules/engine.io-client/build/esm/contrib/has-cors.js +11 -0
  158. package/node_modules/engine.io-client/build/esm/contrib/parseqs.d.ts +15 -0
  159. package/node_modules/engine.io-client/build/esm/contrib/parseqs.js +34 -0
  160. package/node_modules/engine.io-client/build/esm/contrib/parseuri.d.ts +1 -0
  161. package/node_modules/engine.io-client/build/esm/contrib/parseuri.js +64 -0
  162. package/node_modules/engine.io-client/build/esm/globals.d.ts +4 -0
  163. package/node_modules/engine.io-client/build/esm/globals.js +22 -0
  164. package/node_modules/engine.io-client/build/esm/globals.node.d.ts +20 -0
  165. package/node_modules/engine.io-client/build/esm/globals.node.js +91 -0
  166. package/node_modules/engine.io-client/build/esm/index.d.ts +15 -0
  167. package/node_modules/engine.io-client/build/esm/index.js +14 -0
  168. package/node_modules/engine.io-client/build/esm/package.json +10 -0
  169. package/node_modules/engine.io-client/build/esm/socket.d.ts +439 -0
  170. package/node_modules/engine.io-client/build/esm/socket.js +662 -0
  171. package/node_modules/engine.io-client/build/esm/transport.d.ts +106 -0
  172. package/node_modules/engine.io-client/build/esm/transport.js +142 -0
  173. package/node_modules/engine.io-client/build/esm/transports/index.d.ts +8 -0
  174. package/node_modules/engine.io-client/build/esm/transports/index.js +8 -0
  175. package/node_modules/engine.io-client/build/esm/transports/polling-fetch.d.ts +15 -0
  176. package/node_modules/engine.io-client/build/esm/transports/polling-fetch.js +56 -0
  177. package/node_modules/engine.io-client/build/esm/transports/polling-xhr.d.ts +108 -0
  178. package/node_modules/engine.io-client/build/esm/transports/polling-xhr.js +271 -0
  179. package/node_modules/engine.io-client/build/esm/transports/polling-xhr.node.d.ts +11 -0
  180. package/node_modules/engine.io-client/build/esm/transports/polling-xhr.node.js +17 -0
  181. package/node_modules/engine.io-client/build/esm/transports/polling.d.ts +52 -0
  182. package/node_modules/engine.io-client/build/esm/transports/polling.js +145 -0
  183. package/node_modules/engine.io-client/build/esm/transports/websocket.d.ts +36 -0
  184. package/node_modules/engine.io-client/build/esm/transports/websocket.js +125 -0
  185. package/node_modules/engine.io-client/build/esm/transports/websocket.node.d.ts +14 -0
  186. package/node_modules/engine.io-client/build/esm/transports/websocket.node.js +41 -0
  187. package/node_modules/engine.io-client/build/esm/transports/webtransport.d.ts +18 -0
  188. package/node_modules/engine.io-client/build/esm/transports/webtransport.js +80 -0
  189. package/node_modules/engine.io-client/build/esm/util.d.ts +7 -0
  190. package/node_modules/engine.io-client/build/esm/util.js +59 -0
  191. package/node_modules/engine.io-client/build/esm-debug/browser-entrypoint.d.ts +3 -0
  192. package/node_modules/engine.io-client/build/esm-debug/browser-entrypoint.js +2 -0
  193. package/node_modules/engine.io-client/build/esm-debug/contrib/has-cors.d.ts +1 -0
  194. package/node_modules/engine.io-client/build/esm-debug/contrib/has-cors.js +11 -0
  195. package/node_modules/engine.io-client/build/esm-debug/contrib/parseqs.d.ts +15 -0
  196. package/node_modules/engine.io-client/build/esm-debug/contrib/parseqs.js +34 -0
  197. package/node_modules/engine.io-client/build/esm-debug/contrib/parseuri.d.ts +1 -0
  198. package/node_modules/engine.io-client/build/esm-debug/contrib/parseuri.js +64 -0
  199. package/node_modules/engine.io-client/build/esm-debug/globals.d.ts +4 -0
  200. package/node_modules/engine.io-client/build/esm-debug/globals.js +22 -0
  201. package/node_modules/engine.io-client/build/esm-debug/globals.node.d.ts +20 -0
  202. package/node_modules/engine.io-client/build/esm-debug/globals.node.js +91 -0
  203. package/node_modules/engine.io-client/build/esm-debug/index.d.ts +15 -0
  204. package/node_modules/engine.io-client/build/esm-debug/index.js +14 -0
  205. package/node_modules/engine.io-client/build/esm-debug/package.json +10 -0
  206. package/node_modules/engine.io-client/build/esm-debug/socket.d.ts +439 -0
  207. package/node_modules/engine.io-client/build/esm-debug/socket.js +691 -0
  208. package/node_modules/engine.io-client/build/esm-debug/transport.d.ts +106 -0
  209. package/node_modules/engine.io-client/build/esm-debug/transport.js +145 -0
  210. package/node_modules/engine.io-client/build/esm-debug/transports/index.d.ts +8 -0
  211. package/node_modules/engine.io-client/build/esm-debug/transports/index.js +8 -0
  212. package/node_modules/engine.io-client/build/esm-debug/transports/polling-fetch.d.ts +15 -0
  213. package/node_modules/engine.io-client/build/esm-debug/transports/polling-fetch.js +56 -0
  214. package/node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.d.ts +108 -0
  215. package/node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.js +276 -0
  216. package/node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.node.d.ts +11 -0
  217. package/node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.node.js +17 -0
  218. package/node_modules/engine.io-client/build/esm-debug/transports/polling.d.ts +52 -0
  219. package/node_modules/engine.io-client/build/esm-debug/transports/polling.js +158 -0
  220. package/node_modules/engine.io-client/build/esm-debug/transports/websocket.d.ts +36 -0
  221. package/node_modules/engine.io-client/build/esm-debug/transports/websocket.js +128 -0
  222. package/node_modules/engine.io-client/build/esm-debug/transports/websocket.node.d.ts +14 -0
  223. package/node_modules/engine.io-client/build/esm-debug/transports/websocket.node.js +41 -0
  224. package/node_modules/engine.io-client/build/esm-debug/transports/webtransport.d.ts +18 -0
  225. package/node_modules/engine.io-client/build/esm-debug/transports/webtransport.js +87 -0
  226. package/node_modules/engine.io-client/build/esm-debug/util.d.ts +7 -0
  227. package/node_modules/engine.io-client/build/esm-debug/util.js +59 -0
  228. package/node_modules/engine.io-client/dist/engine.io.esm.min.js +7 -0
  229. package/node_modules/engine.io-client/dist/engine.io.esm.min.js.map +1 -0
  230. package/node_modules/engine.io-client/dist/engine.io.js +2989 -0
  231. package/node_modules/engine.io-client/dist/engine.io.js.map +1 -0
  232. package/node_modules/engine.io-client/dist/engine.io.min.js +7 -0
  233. package/node_modules/engine.io-client/dist/engine.io.min.js.map +1 -0
  234. package/node_modules/engine.io-client/node_modules/debug/LICENSE +20 -0
  235. package/node_modules/engine.io-client/node_modules/debug/README.md +481 -0
  236. package/node_modules/engine.io-client/node_modules/debug/package.json +64 -0
  237. package/node_modules/engine.io-client/node_modules/debug/src/browser.js +272 -0
  238. package/node_modules/engine.io-client/node_modules/debug/src/common.js +292 -0
  239. package/node_modules/engine.io-client/node_modules/debug/src/index.js +10 -0
  240. package/node_modules/engine.io-client/node_modules/debug/src/node.js +263 -0
  241. package/node_modules/engine.io-client/package.json +95 -0
  242. package/node_modules/engine.io-parser/LICENSE +22 -0
  243. package/node_modules/engine.io-parser/Readme.md +158 -0
  244. package/node_modules/engine.io-parser/build/cjs/commons.d.ts +14 -0
  245. package/node_modules/engine.io-parser/build/cjs/commons.js +19 -0
  246. package/node_modules/engine.io-parser/build/cjs/contrib/base64-arraybuffer.d.ts +2 -0
  247. package/node_modules/engine.io-parser/build/cjs/contrib/base64-arraybuffer.js +48 -0
  248. package/node_modules/engine.io-parser/build/cjs/decodePacket.browser.d.ts +2 -0
  249. package/node_modules/engine.io-parser/build/cjs/decodePacket.browser.js +66 -0
  250. package/node_modules/engine.io-parser/build/cjs/decodePacket.d.ts +2 -0
  251. package/node_modules/engine.io-parser/build/cjs/decodePacket.js +59 -0
  252. package/node_modules/engine.io-parser/build/cjs/encodePacket.browser.d.ts +4 -0
  253. package/node_modules/engine.io-parser/build/cjs/encodePacket.browser.js +72 -0
  254. package/node_modules/engine.io-parser/build/cjs/encodePacket.d.ts +3 -0
  255. package/node_modules/engine.io-parser/build/cjs/encodePacket.js +38 -0
  256. package/node_modules/engine.io-parser/build/cjs/index.d.ts +9 -0
  257. package/node_modules/engine.io-parser/build/cjs/index.js +164 -0
  258. package/node_modules/engine.io-parser/build/cjs/package.json +8 -0
  259. package/node_modules/engine.io-parser/build/esm/commons.d.ts +14 -0
  260. package/node_modules/engine.io-parser/build/esm/commons.js +14 -0
  261. package/node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.d.ts +2 -0
  262. package/node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.js +43 -0
  263. package/node_modules/engine.io-parser/build/esm/decodePacket.browser.d.ts +2 -0
  264. package/node_modules/engine.io-parser/build/esm/decodePacket.browser.js +62 -0
  265. package/node_modules/engine.io-parser/build/esm/decodePacket.d.ts +2 -0
  266. package/node_modules/engine.io-parser/build/esm/decodePacket.js +55 -0
  267. package/node_modules/engine.io-parser/build/esm/encodePacket.browser.d.ts +4 -0
  268. package/node_modules/engine.io-parser/build/esm/encodePacket.browser.js +68 -0
  269. package/node_modules/engine.io-parser/build/esm/encodePacket.d.ts +3 -0
  270. package/node_modules/engine.io-parser/build/esm/encodePacket.js +33 -0
  271. package/node_modules/engine.io-parser/build/esm/index.d.ts +9 -0
  272. package/node_modules/engine.io-parser/build/esm/index.js +156 -0
  273. package/node_modules/engine.io-parser/build/esm/package.json +8 -0
  274. package/node_modules/engine.io-parser/package.json +46 -0
  275. package/node_modules/has-flag/index.d.ts +39 -0
  276. package/node_modules/has-flag/index.js +8 -0
  277. package/node_modules/has-flag/license +9 -0
  278. package/node_modules/has-flag/package.json +46 -0
  279. package/node_modules/has-flag/readme.md +89 -0
  280. package/node_modules/ieee754/LICENSE +11 -0
  281. package/node_modules/ieee754/README.md +51 -0
  282. package/node_modules/ieee754/index.d.ts +10 -0
  283. package/node_modules/ieee754/index.js +85 -0
  284. package/node_modules/ieee754/package.json +52 -0
  285. package/node_modules/inherits/LICENSE +16 -0
  286. package/node_modules/inherits/README.md +42 -0
  287. package/node_modules/inherits/inherits.js +9 -0
  288. package/node_modules/inherits/inherits_browser.js +27 -0
  289. package/node_modules/inherits/package.json +29 -0
  290. package/node_modules/is-docker/cli.js +5 -0
  291. package/node_modules/is-docker/index.d.ts +15 -0
  292. package/node_modules/is-docker/index.js +29 -0
  293. package/node_modules/is-docker/license +9 -0
  294. package/node_modules/is-docker/package.json +42 -0
  295. package/node_modules/is-docker/readme.md +27 -0
  296. package/node_modules/is-interactive/index.d.ts +31 -0
  297. package/node_modules/is-interactive/index.js +9 -0
  298. package/node_modules/is-interactive/license +9 -0
  299. package/node_modules/is-interactive/package.json +38 -0
  300. package/node_modules/is-interactive/readme.md +51 -0
  301. package/node_modules/is-unicode-supported/index.d.ts +14 -0
  302. package/node_modules/is-unicode-supported/index.js +13 -0
  303. package/node_modules/is-unicode-supported/license +9 -0
  304. package/node_modules/is-unicode-supported/package.json +41 -0
  305. package/node_modules/is-unicode-supported/readme.md +35 -0
  306. package/node_modules/is-wsl/index.d.ts +15 -0
  307. package/node_modules/is-wsl/index.js +31 -0
  308. package/node_modules/is-wsl/license +9 -0
  309. package/node_modules/is-wsl/package.json +45 -0
  310. package/node_modules/is-wsl/readme.md +36 -0
  311. package/node_modules/log-symbols/browser.js +8 -0
  312. package/node_modules/log-symbols/index.d.ts +25 -0
  313. package/node_modules/log-symbols/index.js +19 -0
  314. package/node_modules/log-symbols/license +9 -0
  315. package/node_modules/log-symbols/package.json +52 -0
  316. package/node_modules/log-symbols/readme.md +51 -0
  317. package/node_modules/mimic-fn/index.d.ts +54 -0
  318. package/node_modules/mimic-fn/index.js +13 -0
  319. package/node_modules/mimic-fn/license +9 -0
  320. package/node_modules/mimic-fn/package.json +42 -0
  321. package/node_modules/mimic-fn/readme.md +69 -0
  322. package/node_modules/ms/index.js +162 -0
  323. package/node_modules/ms/license.md +21 -0
  324. package/node_modules/ms/package.json +38 -0
  325. package/node_modules/ms/readme.md +59 -0
  326. package/node_modules/onetime/index.d.ts +64 -0
  327. package/node_modules/onetime/index.js +44 -0
  328. package/node_modules/onetime/license +9 -0
  329. package/node_modules/onetime/package.json +43 -0
  330. package/node_modules/onetime/readme.md +94 -0
  331. package/node_modules/open/index.d.ts +153 -0
  332. package/node_modules/open/index.js +334 -0
  333. package/node_modules/open/license +9 -0
  334. package/node_modules/open/package.json +61 -0
  335. package/node_modules/open/readme.md +171 -0
  336. package/node_modules/open/xdg-open +1066 -0
  337. package/node_modules/ora/index.d.ts +277 -0
  338. package/node_modules/ora/index.js +407 -0
  339. package/node_modules/ora/license +9 -0
  340. package/node_modules/ora/package.json +57 -0
  341. package/node_modules/ora/readme.md +264 -0
  342. package/node_modules/readable-stream/CONTRIBUTING.md +38 -0
  343. package/node_modules/readable-stream/GOVERNANCE.md +136 -0
  344. package/node_modules/readable-stream/LICENSE +47 -0
  345. package/node_modules/readable-stream/README.md +106 -0
  346. package/node_modules/readable-stream/errors-browser.js +127 -0
  347. package/node_modules/readable-stream/errors.js +116 -0
  348. package/node_modules/readable-stream/experimentalWarning.js +17 -0
  349. package/node_modules/readable-stream/lib/_stream_duplex.js +126 -0
  350. package/node_modules/readable-stream/lib/_stream_passthrough.js +37 -0
  351. package/node_modules/readable-stream/lib/_stream_readable.js +1027 -0
  352. package/node_modules/readable-stream/lib/_stream_transform.js +190 -0
  353. package/node_modules/readable-stream/lib/_stream_writable.js +641 -0
  354. package/node_modules/readable-stream/lib/internal/streams/async_iterator.js +180 -0
  355. package/node_modules/readable-stream/lib/internal/streams/buffer_list.js +183 -0
  356. package/node_modules/readable-stream/lib/internal/streams/destroy.js +96 -0
  357. package/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +86 -0
  358. package/node_modules/readable-stream/lib/internal/streams/from-browser.js +3 -0
  359. package/node_modules/readable-stream/lib/internal/streams/from.js +52 -0
  360. package/node_modules/readable-stream/lib/internal/streams/pipeline.js +86 -0
  361. package/node_modules/readable-stream/lib/internal/streams/state.js +22 -0
  362. package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
  363. package/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
  364. package/node_modules/readable-stream/package.json +68 -0
  365. package/node_modules/readable-stream/readable-browser.js +9 -0
  366. package/node_modules/readable-stream/readable.js +16 -0
  367. package/node_modules/restore-cursor/index.d.ts +13 -0
  368. package/node_modules/restore-cursor/index.js +9 -0
  369. package/node_modules/restore-cursor/license +9 -0
  370. package/node_modules/restore-cursor/package.json +52 -0
  371. package/node_modules/restore-cursor/readme.md +26 -0
  372. package/node_modules/safe-buffer/LICENSE +21 -0
  373. package/node_modules/safe-buffer/README.md +584 -0
  374. package/node_modules/safe-buffer/index.d.ts +187 -0
  375. package/node_modules/safe-buffer/index.js +65 -0
  376. package/node_modules/safe-buffer/package.json +51 -0
  377. package/node_modules/signal-exit/LICENSE.txt +16 -0
  378. package/node_modules/signal-exit/README.md +39 -0
  379. package/node_modules/signal-exit/index.js +202 -0
  380. package/node_modules/signal-exit/package.json +38 -0
  381. package/node_modules/signal-exit/signals.js +53 -0
  382. package/node_modules/socket.io-client/LICENSE +21 -0
  383. package/node_modules/socket.io-client/README.md +29 -0
  384. package/node_modules/socket.io-client/build/cjs/browser-entrypoint.d.ts +2 -0
  385. package/node_modules/socket.io-client/build/cjs/browser-entrypoint.js +4 -0
  386. package/node_modules/socket.io-client/build/cjs/contrib/backo2.d.ts +12 -0
  387. package/node_modules/socket.io-client/build/cjs/contrib/backo2.js +69 -0
  388. package/node_modules/socket.io-client/build/cjs/index.d.ts +29 -0
  389. package/node_modules/socket.io-client/build/cjs/index.js +76 -0
  390. package/node_modules/socket.io-client/build/cjs/manager.d.ts +295 -0
  391. package/node_modules/socket.io-client/build/cjs/manager.js +416 -0
  392. package/node_modules/socket.io-client/build/cjs/on.d.ts +2 -0
  393. package/node_modules/socket.io-client/build/cjs/on.js +9 -0
  394. package/node_modules/socket.io-client/build/cjs/socket.d.ts +593 -0
  395. package/node_modules/socket.io-client/build/cjs/socket.js +910 -0
  396. package/node_modules/socket.io-client/build/cjs/url.d.ts +33 -0
  397. package/node_modules/socket.io-client/build/cjs/url.js +69 -0
  398. package/node_modules/socket.io-client/build/esm/browser-entrypoint.d.ts +2 -0
  399. package/node_modules/socket.io-client/build/esm/browser-entrypoint.js +2 -0
  400. package/node_modules/socket.io-client/build/esm/contrib/backo2.d.ts +12 -0
  401. package/node_modules/socket.io-client/build/esm/contrib/backo2.js +66 -0
  402. package/node_modules/socket.io-client/build/esm/index.d.ts +29 -0
  403. package/node_modules/socket.io-client/build/esm/index.js +58 -0
  404. package/node_modules/socket.io-client/build/esm/manager.d.ts +295 -0
  405. package/node_modules/socket.io-client/build/esm/manager.js +367 -0
  406. package/node_modules/socket.io-client/build/esm/on.d.ts +2 -0
  407. package/node_modules/socket.io-client/build/esm/on.js +6 -0
  408. package/node_modules/socket.io-client/build/esm/package.json +5 -0
  409. package/node_modules/socket.io-client/build/esm/socket.d.ts +593 -0
  410. package/node_modules/socket.io-client/build/esm/socket.js +882 -0
  411. package/node_modules/socket.io-client/build/esm/url.d.ts +33 -0
  412. package/node_modules/socket.io-client/build/esm/url.js +59 -0
  413. package/node_modules/socket.io-client/build/esm-debug/browser-entrypoint.d.ts +2 -0
  414. package/node_modules/socket.io-client/build/esm-debug/browser-entrypoint.js +2 -0
  415. package/node_modules/socket.io-client/build/esm-debug/contrib/backo2.d.ts +12 -0
  416. package/node_modules/socket.io-client/build/esm-debug/contrib/backo2.js +66 -0
  417. package/node_modules/socket.io-client/build/esm-debug/index.d.ts +29 -0
  418. package/node_modules/socket.io-client/build/esm-debug/index.js +62 -0
  419. package/node_modules/socket.io-client/build/esm-debug/manager.d.ts +295 -0
  420. package/node_modules/socket.io-client/build/esm-debug/manager.js +386 -0
  421. package/node_modules/socket.io-client/build/esm-debug/on.d.ts +2 -0
  422. package/node_modules/socket.io-client/build/esm-debug/on.js +6 -0
  423. package/node_modules/socket.io-client/build/esm-debug/package.json +5 -0
  424. package/node_modules/socket.io-client/build/esm-debug/socket.d.ts +593 -0
  425. package/node_modules/socket.io-client/build/esm-debug/socket.js +903 -0
  426. package/node_modules/socket.io-client/build/esm-debug/url.d.ts +33 -0
  427. package/node_modules/socket.io-client/build/esm-debug/url.js +63 -0
  428. package/node_modules/socket.io-client/dist/socket.io.esm.min.js +7 -0
  429. package/node_modules/socket.io-client/dist/socket.io.esm.min.js.map +1 -0
  430. package/node_modules/socket.io-client/dist/socket.io.js +4908 -0
  431. package/node_modules/socket.io-client/dist/socket.io.js.map +1 -0
  432. package/node_modules/socket.io-client/dist/socket.io.min.js +7 -0
  433. package/node_modules/socket.io-client/dist/socket.io.min.js.map +1 -0
  434. package/node_modules/socket.io-client/dist/socket.io.msgpack.min.js +7 -0
  435. package/node_modules/socket.io-client/dist/socket.io.msgpack.min.js.map +1 -0
  436. package/node_modules/socket.io-client/package.json +101 -0
  437. package/node_modules/socket.io-parser/LICENSE +20 -0
  438. package/node_modules/socket.io-parser/Readme.md +81 -0
  439. package/node_modules/socket.io-parser/build/cjs/binary.d.ts +20 -0
  440. package/node_modules/socket.io-parser/build/cjs/binary.js +90 -0
  441. package/node_modules/socket.io-parser/build/cjs/index.d.ts +101 -0
  442. package/node_modules/socket.io-parser/build/cjs/index.js +366 -0
  443. package/node_modules/socket.io-parser/build/cjs/is-binary.d.ts +7 -0
  444. package/node_modules/socket.io-parser/build/cjs/is-binary.js +54 -0
  445. package/node_modules/socket.io-parser/build/cjs/package.json +3 -0
  446. package/node_modules/socket.io-parser/build/esm/binary.d.ts +20 -0
  447. package/node_modules/socket.io-parser/build/esm/binary.js +86 -0
  448. package/node_modules/socket.io-parser/build/esm/index.d.ts +101 -0
  449. package/node_modules/socket.io-parser/build/esm/index.js +352 -0
  450. package/node_modules/socket.io-parser/build/esm/is-binary.d.ts +7 -0
  451. package/node_modules/socket.io-parser/build/esm/is-binary.js +50 -0
  452. package/node_modules/socket.io-parser/build/esm/package.json +3 -0
  453. package/node_modules/socket.io-parser/build/esm-debug/binary.d.ts +20 -0
  454. package/node_modules/socket.io-parser/build/esm-debug/binary.js +86 -0
  455. package/node_modules/socket.io-parser/build/esm-debug/index.d.ts +101 -0
  456. package/node_modules/socket.io-parser/build/esm-debug/index.js +357 -0
  457. package/node_modules/socket.io-parser/build/esm-debug/is-binary.d.ts +7 -0
  458. package/node_modules/socket.io-parser/build/esm-debug/is-binary.js +50 -0
  459. package/node_modules/socket.io-parser/build/esm-debug/package.json +3 -0
  460. package/node_modules/socket.io-parser/node_modules/debug/LICENSE +20 -0
  461. package/node_modules/socket.io-parser/node_modules/debug/README.md +481 -0
  462. package/node_modules/socket.io-parser/node_modules/debug/package.json +64 -0
  463. package/node_modules/socket.io-parser/node_modules/debug/src/browser.js +272 -0
  464. package/node_modules/socket.io-parser/node_modules/debug/src/common.js +292 -0
  465. package/node_modules/socket.io-parser/node_modules/debug/src/index.js +10 -0
  466. package/node_modules/socket.io-parser/node_modules/debug/src/node.js +263 -0
  467. package/node_modules/socket.io-parser/package.json +44 -0
  468. package/node_modules/string_decoder/LICENSE +48 -0
  469. package/node_modules/string_decoder/README.md +47 -0
  470. package/node_modules/string_decoder/lib/string_decoder.js +296 -0
  471. package/node_modules/string_decoder/package.json +34 -0
  472. package/node_modules/strip-ansi/index.d.ts +17 -0
  473. package/node_modules/strip-ansi/index.js +4 -0
  474. package/node_modules/strip-ansi/license +9 -0
  475. package/node_modules/strip-ansi/package.json +54 -0
  476. package/node_modules/strip-ansi/readme.md +46 -0
  477. package/node_modules/supports-color/browser.js +5 -0
  478. package/node_modules/supports-color/index.js +135 -0
  479. package/node_modules/supports-color/license +9 -0
  480. package/node_modules/supports-color/package.json +53 -0
  481. package/node_modules/supports-color/readme.md +76 -0
  482. package/node_modules/util-deprecate/History.md +16 -0
  483. package/node_modules/util-deprecate/LICENSE +24 -0
  484. package/node_modules/util-deprecate/README.md +53 -0
  485. package/node_modules/util-deprecate/browser.js +67 -0
  486. package/node_modules/util-deprecate/node.js +6 -0
  487. package/node_modules/util-deprecate/package.json +27 -0
  488. package/node_modules/wcwidth/.npmignore +1 -0
  489. package/node_modules/wcwidth/LICENSE +30 -0
  490. package/node_modules/wcwidth/Readme.md +33 -0
  491. package/node_modules/wcwidth/combining.js +50 -0
  492. package/node_modules/wcwidth/docs/index.md +65 -0
  493. package/node_modules/wcwidth/index.js +99 -0
  494. package/node_modules/wcwidth/package.json +42 -0
  495. package/node_modules/wcwidth/test/index.js +64 -0
  496. package/node_modules/ws/LICENSE +20 -0
  497. package/node_modules/ws/README.md +548 -0
  498. package/node_modules/ws/browser.js +8 -0
  499. package/node_modules/ws/index.js +22 -0
  500. package/node_modules/ws/lib/buffer-util.js +131 -0
  501. package/node_modules/ws/lib/constants.js +19 -0
  502. package/node_modules/ws/lib/event-target.js +292 -0
  503. package/node_modules/ws/lib/extension.js +203 -0
  504. package/node_modules/ws/lib/limiter.js +55 -0
  505. package/node_modules/ws/lib/permessage-deflate.js +530 -0
  506. package/node_modules/ws/lib/receiver.js +743 -0
  507. package/node_modules/ws/lib/sender.js +607 -0
  508. package/node_modules/ws/lib/stream.js +161 -0
  509. package/node_modules/ws/lib/subprotocol.js +62 -0
  510. package/node_modules/ws/lib/validation.js +152 -0
  511. package/node_modules/ws/lib/websocket-server.js +562 -0
  512. package/node_modules/ws/lib/websocket.js +1407 -0
  513. package/node_modules/ws/package.json +74 -0
  514. package/node_modules/ws/wrapper.mjs +21 -0
  515. package/node_modules/xmlhttprequest-ssl/LICENSE +22 -0
  516. package/node_modules/xmlhttprequest-ssl/README.md +67 -0
  517. package/node_modules/xmlhttprequest-ssl/lib/XMLHttpRequest.js +689 -0
  518. package/node_modules/xmlhttprequest-ssl/package.json +40 -0
  519. package/package.json +8 -15
@@ -0,0 +1,64 @@
1
+ declare namespace onetime {
2
+ interface Options {
3
+ /**
4
+ Throw an error when called more than once.
5
+
6
+ @default false
7
+ */
8
+ throw?: boolean;
9
+ }
10
+ }
11
+
12
+ declare const onetime: {
13
+ /**
14
+ Ensure a function is only called once. When called multiple times it will return the return value from the first call.
15
+
16
+ @param fn - Function that should only be called once.
17
+ @returns A function that only calls `fn` once.
18
+
19
+ @example
20
+ ```
21
+ import onetime = require('onetime');
22
+
23
+ let i = 0;
24
+
25
+ const foo = onetime(() => ++i);
26
+
27
+ foo(); //=> 1
28
+ foo(); //=> 1
29
+ foo(); //=> 1
30
+
31
+ onetime.callCount(foo); //=> 3
32
+ ```
33
+ */
34
+ <ArgumentsType extends unknown[], ReturnType>(
35
+ fn: (...arguments: ArgumentsType) => ReturnType,
36
+ options?: onetime.Options
37
+ ): (...arguments: ArgumentsType) => ReturnType;
38
+
39
+ /**
40
+ Get the number of times `fn` has been called.
41
+
42
+ @param fn - Function to get call count from.
43
+ @returns A number representing how many times `fn` has been called.
44
+
45
+ @example
46
+ ```
47
+ import onetime = require('onetime');
48
+
49
+ const foo = onetime(() => {});
50
+ foo();
51
+ foo();
52
+ foo();
53
+
54
+ console.log(onetime.callCount(foo));
55
+ //=> 3
56
+ ```
57
+ */
58
+ callCount(fn: (...arguments: any[]) => unknown): number;
59
+
60
+ // TODO: Remove this for the next major release
61
+ default: typeof onetime;
62
+ };
63
+
64
+ export = onetime;
@@ -0,0 +1,44 @@
1
+ 'use strict';
2
+ const mimicFn = require('mimic-fn');
3
+
4
+ const calledFunctions = new WeakMap();
5
+
6
+ const onetime = (function_, options = {}) => {
7
+ if (typeof function_ !== 'function') {
8
+ throw new TypeError('Expected a function');
9
+ }
10
+
11
+ let returnValue;
12
+ let callCount = 0;
13
+ const functionName = function_.displayName || function_.name || '<anonymous>';
14
+
15
+ const onetime = function (...arguments_) {
16
+ calledFunctions.set(onetime, ++callCount);
17
+
18
+ if (callCount === 1) {
19
+ returnValue = function_.apply(this, arguments_);
20
+ function_ = null;
21
+ } else if (options.throw === true) {
22
+ throw new Error(`Function \`${functionName}\` can only be called once`);
23
+ }
24
+
25
+ return returnValue;
26
+ };
27
+
28
+ mimicFn(onetime, function_);
29
+ calledFunctions.set(onetime, callCount);
30
+
31
+ return onetime;
32
+ };
33
+
34
+ module.exports = onetime;
35
+ // TODO: Remove this for the next major release
36
+ module.exports.default = onetime;
37
+
38
+ module.exports.callCount = function_ => {
39
+ if (!calledFunctions.has(function_)) {
40
+ throw new Error(`The given function \`${function_.name}\` is not wrapped by the \`onetime\` package`);
41
+ }
42
+
43
+ return calledFunctions.get(function_);
44
+ };
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "onetime",
3
+ "version": "5.1.2",
4
+ "description": "Ensure a function is only called once",
5
+ "license": "MIT",
6
+ "repository": "sindresorhus/onetime",
7
+ "funding": "https://github.com/sponsors/sindresorhus",
8
+ "author": {
9
+ "name": "Sindre Sorhus",
10
+ "email": "sindresorhus@gmail.com",
11
+ "url": "https://sindresorhus.com"
12
+ },
13
+ "engines": {
14
+ "node": ">=6"
15
+ },
16
+ "scripts": {
17
+ "test": "xo && ava && tsd"
18
+ },
19
+ "files": [
20
+ "index.js",
21
+ "index.d.ts"
22
+ ],
23
+ "keywords": [
24
+ "once",
25
+ "function",
26
+ "one",
27
+ "onetime",
28
+ "func",
29
+ "fn",
30
+ "single",
31
+ "call",
32
+ "called",
33
+ "prevent"
34
+ ],
35
+ "dependencies": {
36
+ "mimic-fn": "^2.1.0"
37
+ },
38
+ "devDependencies": {
39
+ "ava": "^1.4.1",
40
+ "tsd": "^0.7.1",
41
+ "xo": "^0.24.0"
42
+ }
43
+ }
@@ -0,0 +1,94 @@
1
+ # onetime [![Build Status](https://travis-ci.com/sindresorhus/onetime.svg?branch=master)](https://travis-ci.com/github/sindresorhus/onetime)
2
+
3
+ > Ensure a function is only called once
4
+
5
+ When called multiple times it will return the return value from the first call.
6
+
7
+ *Unlike the module [once](https://github.com/isaacs/once), this one isn't naughty and extending `Function.prototype`.*
8
+
9
+ ## Install
10
+
11
+ ```
12
+ $ npm install onetime
13
+ ```
14
+
15
+ ## Usage
16
+
17
+ ```js
18
+ const onetime = require('onetime');
19
+
20
+ let i = 0;
21
+
22
+ const foo = onetime(() => ++i);
23
+
24
+ foo(); //=> 1
25
+ foo(); //=> 1
26
+ foo(); //=> 1
27
+
28
+ onetime.callCount(foo); //=> 3
29
+ ```
30
+
31
+ ```js
32
+ const onetime = require('onetime');
33
+
34
+ const foo = onetime(() => {}, {throw: true});
35
+
36
+ foo();
37
+
38
+ foo();
39
+ //=> Error: Function `foo` can only be called once
40
+ ```
41
+
42
+ ## API
43
+
44
+ ### onetime(fn, options?)
45
+
46
+ Returns a function that only calls `fn` once.
47
+
48
+ #### fn
49
+
50
+ Type: `Function`
51
+
52
+ Function that should only be called once.
53
+
54
+ #### options
55
+
56
+ Type: `object`
57
+
58
+ ##### throw
59
+
60
+ Type: `boolean`\
61
+ Default: `false`
62
+
63
+ Throw an error when called more than once.
64
+
65
+ ### onetime.callCount(fn)
66
+
67
+ Returns a number representing how many times `fn` has been called.
68
+
69
+ Note: It throws an error if you pass in a function that is not wrapped by `onetime`.
70
+
71
+ ```js
72
+ const onetime = require('onetime');
73
+
74
+ const foo = onetime(() => {});
75
+
76
+ foo();
77
+ foo();
78
+ foo();
79
+
80
+ console.log(onetime.callCount(foo));
81
+ //=> 3
82
+ ```
83
+
84
+ #### fn
85
+
86
+ Type: `Function`
87
+
88
+ Function to get call count from.
89
+
90
+ ## onetime for enterprise
91
+
92
+ Available as part of the Tidelift Subscription.
93
+
94
+ The maintainers of onetime and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-onetime?utm_source=npm-onetime&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
@@ -0,0 +1,153 @@
1
+ import {ChildProcess} from 'child_process';
2
+
3
+ declare namespace open {
4
+ interface Options {
5
+ /**
6
+ Wait for the opened app to exit before fulfilling the promise. If `false` it's fulfilled immediately when opening the app.
7
+
8
+ Note that it waits for the app to exit, not just for the window to close.
9
+
10
+ On Windows, you have to explicitly specify an app for it to be able to wait.
11
+
12
+ @default false
13
+ */
14
+ readonly wait?: boolean;
15
+
16
+ /**
17
+ __macOS only__
18
+
19
+ Do not bring the app to the foreground.
20
+
21
+ @default false
22
+ */
23
+ readonly background?: boolean;
24
+
25
+ /**
26
+ __macOS only__
27
+
28
+ Open a new instance of the app even it's already running.
29
+
30
+ A new instance is always opened on other platforms.
31
+
32
+ @default false
33
+ */
34
+ readonly newInstance?: boolean;
35
+
36
+ /**
37
+ Specify the `name` of the app to open the `target` with, and optionally, app `arguments`. `app` can be an array of apps to try to open and `name` can be an array of app names to try. If each app fails, the last error will be thrown.
38
+
39
+ The app name is platform dependent. Don't hard code it in reusable modules. For example, Chrome is `google chrome` on macOS, `google-chrome` on Linux and `chrome` on Windows. If possible, use [`open.apps`](#openapps) which auto-detects the correct binary to use.
40
+
41
+ You may also pass in the app's full path. For example on WSL, this can be `/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe` for the Windows installation of Chrome.
42
+
43
+ The app `arguments` are app dependent. Check the app's documentation for what arguments it accepts.
44
+ */
45
+ readonly app?: App | readonly App[];
46
+
47
+ /**
48
+ Allow the opened app to exit with nonzero exit code when the `wait` option is `true`.
49
+
50
+ We do not recommend setting this option. The convention for success is exit code zero.
51
+
52
+ @default false
53
+ */
54
+ readonly allowNonzeroExitCode?: boolean;
55
+ }
56
+
57
+ interface OpenAppOptions extends Omit<Options, 'app'> {
58
+ /**
59
+ Arguments passed to the app.
60
+
61
+ These arguments are app dependent. Check the app's documentation for what arguments it accepts.
62
+ */
63
+ readonly arguments?: readonly string[];
64
+ }
65
+
66
+ type AppName =
67
+ | 'chrome'
68
+ | 'firefox'
69
+ | 'edge';
70
+
71
+ type App = {
72
+ name: string | readonly string[];
73
+ arguments?: readonly string[];
74
+ };
75
+ }
76
+
77
+ // eslint-disable-next-line no-redeclare
78
+ declare const open: {
79
+ /**
80
+ Open stuff like URLs, files, executables. Cross-platform.
81
+
82
+ Uses the command `open` on macOS, `start` on Windows and `xdg-open` on other platforms.
83
+
84
+ There is a caveat for [double-quotes on Windows](https://github.com/sindresorhus/open#double-quotes-on-windows) where all double-quotes are stripped from the `target`.
85
+
86
+ @param target - The thing you want to open. Can be a URL, file, or executable. Opens in the default app for the file type. For example, URLs open in your default browser.
87
+ @returns The [spawned child process](https://nodejs.org/api/child_process.html#child_process_class_childprocess). You would normally not need to use this for anything, but it can be useful if you'd like to attach custom event listeners or perform other operations directly on the spawned process.
88
+
89
+ @example
90
+ ```
91
+ import open = require('open');
92
+
93
+ // Opens the image in the default image viewer
94
+ await open('unicorn.png', {wait: true});
95
+ console.log('The image viewer app closed');
96
+
97
+ // Opens the url in the default browser
98
+ await open('https://sindresorhus.com');
99
+
100
+ // Opens the URL in a specified browser.
101
+ await open('https://sindresorhus.com', {app: {name: 'firefox'}});
102
+
103
+ // Specify app arguments.
104
+ await open('https://sindresorhus.com', {app: {name: 'google chrome', arguments: ['--incognito']}});
105
+ ```
106
+ */
107
+ (
108
+ target: string,
109
+ options?: open.Options
110
+ ): Promise<ChildProcess>;
111
+
112
+ /**
113
+ An object containing auto-detected binary names for common apps. Useful to work around cross-platform differences.
114
+
115
+ @example
116
+ ```
117
+ import open = require('open');
118
+
119
+ await open('https://google.com', {
120
+ app: {
121
+ name: open.apps.chrome
122
+ }
123
+ });
124
+ ```
125
+ */
126
+ apps: Record<open.AppName, string | readonly string[]>;
127
+
128
+ /**
129
+ Open an app. Cross-platform.
130
+
131
+ Uses the command `open` on macOS, `start` on Windows and `xdg-open` on other platforms.
132
+
133
+ @param name - The app you want to open. Can be either builtin supported `open.apps` names or other name supported in platform.
134
+ @returns The [spawned child process](https://nodejs.org/api/child_process.html#child_process_class_childprocess). You would normally not need to use this for anything, but it can be useful if you'd like to attach custom event listeners or perform other operations directly on the spawned process.
135
+
136
+ @example
137
+ ```
138
+ const {apps, openApp} = require('open');
139
+
140
+ // Open Firefox
141
+ await openApp(apps.firefox);
142
+
143
+ // Open Chrome incognito mode
144
+ await openApp(apps.chrome, {arguments: ['--incognito']});
145
+
146
+ // Open Xcode
147
+ await openApp('xcode');
148
+ ```
149
+ */
150
+ openApp: (name: open.App['name'], options?: open.OpenAppOptions) => Promise<ChildProcess>;
151
+ };
152
+
153
+ export = open;