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

Function visualLength

packages/effect/src/unstable/cli/CliOutput.ts:386–386  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

384 * @internal
385 */
386const visualLength = (text: string): number => stripAnsi(text).length
387
388/**
389 * Helper function to pad strings to a specified width.

Callers 2

padFunction · 0.85
renderTableFunction · 0.85

Calls 1

stripAnsiFunction · 0.70

Tested by

no test coverage detected