MCPcopy Create free account
hub / github.com/anomalyco/opencode / pad

Function pad

packages/opencode/test/server/httpapi-exercise/assertions.ts:55–57  ·  view source on GitHub ↗
(value: string, size: number)

Source from the content-addressed store, hash-verified

53}
54
55export function pad(value: string, size: number) {
56 return value.length >= size ? value : value + " ".repeat(size - value.length)
57}
58
59export function indent(value: string) {
60 return value

Callers 1

printResultsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected