Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
55
export
function
pad(value: string, size: number) {
56
return
value.length >= size ? value : value +
" "
.repeat(size - value.length)
57
}
58
59
export
function
indent(value: string) {
60
return
value
Callers
1
printResults
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected