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

Method _truncate

src/tui/fullscreen.js:1142–1144  ·  view source on GitHub ↗
(str, maxLen)

Source from the content-addressed store, hash-verified

1140 // ─── Utilities ───────────────────────────────────────────────────────
1141
1142 _truncate(str, maxLen) {
1143 return fitAnsi(str, maxLen, { pad: false });
1144 }
1145
1146 _stripAnsi(str) {
1147 return stripAnsi(str);

Callers 2

_renderToolPanelMethod · 0.95
_renderStatusMethod · 0.95

Calls 1

fitAnsiFunction · 0.85

Tested by

no test coverage detected