MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / encodePath

Function encodePath

ui/src/lib/adapter.ts:279–281  ·  view source on GitHub ↗

Ids and paths carry ':' and '/', so encode per segment and rejoin.

(value: string)

Source from the content-addressed store, hash-verified

277
278/** Ids and paths carry ':' and '/', so encode per segment and rejoin. */
279function encodePath(value: string): string {
280 return value.split('/').map(encodeURIComponent).join('/');
281}
282
283function query(params: URLSearchParams): string {
284 const text = params.toString();

Callers 1

createHttpAdapterFunction · 0.70

Calls 2

mapMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected