(string)
| 378 | * @returns {string} string without ansi |
| 379 | */ |
| 380 | const stripAnsi = (string) => { |
| 381 | if (typeof string !== "string") { |
| 382 | throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``); |
| 383 | } |
| 384 | |
| 385 | return string.replace(ansiRegex, ""); |
| 386 | }; |
| 387 | |
| 388 | const onSocketMessage = { |
| 389 | hot() { |