MCPcopy
hub / github.com/Doorman11991/smallcode / stripAnsi

Function stripAnsi

bin/executor.js:87–87  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

85 // Uses the comprehensive ANSI stripper from src/security/sanitize.js so
86 // we cover OSC, DCS, 8-bit C1, and other escape forms too — not just CSI.
87 function stripAnsi(str) { return secStripAnsi(str); }
88 if (args && typeof args === 'object') {
89 for (const key of Object.keys(args)) {
90 if (typeof args[key] === 'string') args[key] = stripAnsi(args[key]);

Callers 2

executeToolFunction · 0.70
tui_layout.test.jsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected