MCPcopy Create free account
hub / github.com/Effect-TS/effect / pad

Function pad

packages/effect/src/unstable/cli/CliOutput.ts:392–396  ·  view source on GitHub ↗
(s: string, width: number)

Source from the content-addressed store, hash-verified

390 * @internal
391 */
392const pad = (s: string, width: number) => {
393 const actualLength = visualLength(s)
394 const padding = Math.max(0, width - actualLength)
395 return s + " ".repeat(padding)
396}
397
398/**
399 * Interface for table rows with left and right columns.

Callers 1

renderTableFunction · 0.85

Calls 1

visualLengthFunction · 0.85

Tested by

no test coverage detected