MCPcopy Index your code
hub / github.com/codeaashu/claude-code / stripAnsi

Function stripAnsi

web/lib/ansi-to-html.ts:12–14  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

10
11/** Remove all ANSI escape sequences from a string. */
12export function stripAnsi(text: string): string {
13 return text.replace(ANSI_RE, "");
14}
15
16/** Returns true if the string contains any ANSI escape sequences. */
17export function hasAnsi(text: string): boolean {

Callers 15

submitMessageMethod · 0.85
getPlainTextFunction · 0.85
MarkdownTableFunction · 0.85
renderStatsToAnsiFunction · 0.85
ShellProgressMessageFunction · 0.85
onTextPasteFunction · 0.85
formatTokenFunction · 0.85
getDisplayTextFunction · 0.85
renderToStringFunction · 0.85
streamRenderedMessagesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected