MCPcopy Create free account
hub / github.com/arctic-cli/interface / padLine

Function padLine

packages/arctic/src/cli/ui.ts:115–119  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

113 }
114
115 function padLine(value: string) {
116 const visible = stripAnsi(value)
117 if (visible.length < CONTENT_WIDTH) return value + " ".repeat(CONTENT_WIDTH - visible.length)
118 return value
119 }
120
121 function stripAnsi(value: string) {
122 return value.replace(ANSI_REGEX, "")

Callers 1

logoFunction · 0.85

Calls 1

stripAnsiFunction · 0.85

Tested by

no test coverage detected