MCPcopy Create free account
hub / github.com/Noumena-Network/code / stripTerminalOutput

Function stripTerminalOutput

src/ink/replPerfHarness.tsx:264–266  ·  view source on GitHub ↗
(output: string)

Source from the content-addressed store, hash-verified

262}
263
264export function stripTerminalOutput(output: string): string {
265 return stripAnsi(output).replace(/\s+/g, ' ').trim()
266}
267
268export function collapseWhitespace(output: string): string {
269 return stripTerminalOutput(output).replace(/\s+/g, '')

Callers 4

collapseWhitespaceFunction · 0.85
normalizeTerminalTextFunction · 0.85
parseCounterFunction · 0.85
mountReplFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected