MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / padEndVisible

Function padEndVisible

packages/cli/src/cloud/ansi.ts:29–32  ·  view source on GitHub ↗
(s: string, target: number)

Source from the content-addressed store, hash-verified

27
28/** Like `String.prototype.padEnd` but counts visible chars only. */
29export function padEndVisible(s: string, target: number): string {
30 const overhead = s.length - visibleLength(s);
31 return s.padEnd(target + overhead);
32}

Callers 2

ansi.test.tsFile · 0.85
emitFunction · 0.85

Calls 1

visibleLengthFunction · 0.85

Tested by

no test coverage detected