MCPcopy Create free account
hub / github.com/TanStack/ai / padEnd

Function padEnd

packages/ai-code-mode-skills/test-cli/cli.ts:65–69  ·  view source on GitHub ↗

* Pad a string to a display width, accounting for emojis

(str: string, width: number)

Source from the content-addressed store, hash-verified

63 * Pad a string to a display width, accounting for emojis
64 */
65function padEnd(str: string, width: number): string {
66 const currentWidth = displayWidth(str)
67 const padding = Math.max(0, width - currentWidth)
68 return str + ' '.repeat(padding)
69}
70
71/**
72 * List available adapters and/or tests

Callers 1

formatRowFunction · 0.85

Calls 1

displayWidthFunction · 0.85

Tested by

no test coverage detected