MCPcopy Create free account
hub / github.com/observablehq/framework / stripColor

Function stripColor

src/tty.ts:47–50  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

45};
46
47export function stripColor(s: string): string {
48 // eslint-disable-next-line no-control-regex
49 return s.replace(/\x1b\[[0-9;]*m/g, "");
50}
51
52export function hangingIndentLog(
53 effects: TtyEffects,

Callers 2

deploy-test.tsFile · 0.85
hangingIndentLogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected