MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / joinUrl

Function joinUrl

compatible-shell/src/client.mjs:58–62  ·  view source on GitHub ↗
(base, maybePath)

Source from the content-addressed store, hash-verified

56}
57
58function joinUrl(base, maybePath) {
59 const normalizedBase = base.endsWith('/') ? base.slice(0, -1) : base
60 const normalizedPath = maybePath.startsWith('/') ? maybePath : `/${maybePath}`
61 return `${normalizedBase}${normalizedPath}`
62}

Callers 1

sendMessagesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected