MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / pad

Function pad

src/diagnostics/token-analyzer.ts:374–377  ·  view source on GitHub ↗
(s: string, width: number)

Source from the content-addressed store, hash-verified

372}
373
374function pad(s: string, width: number): string {
375 if (s.length >= width) return s;
376 return ' '.repeat(width - s.length) + s;
377}
378
379function wrapAt(s: string, width: number): string {
380 const words = s.split(' ');

Callers 1

formatReportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected