MCPcopy Index your code
hub / github.com/webpack/webpack-dev-server / stripAnsi

Function stripAnsi

client-src/index.js:380–386  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

378 * @returns {string} string without ansi
379 */
380const 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
388const onSocketMessage = {
389 hot() {

Callers 2

warningsFunction · 0.85
errorsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…