MCPcopy
hub / github.com/Waishnav/devspace / takeTail

Function takeTail

src/process-sessions.ts:118–122  ·  view source on GitHub ↗
(value: string, count: number)

Source from the content-addressed store, hash-verified

116}
117
118function takeTail(value: string, count: number): string {
119 if (count <= 0) return "";
120 const characters = Array.from(value);
121 return characters.slice(Math.max(0, characters.length - count)).join("");
122}
123
124function splitBudget(maxCharacters: number): { head: number; tail: number } {
125 return {

Callers 2

appendMethod · 0.85
truncateOutputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected