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

Function encodePath

ui/src/lib/navigation.ts:112–114  ·  view source on GitHub ↗

* Node ids are opaque engine strings shaped ` : ` or * ` : `, so they can contain both ':' and '/'. Encoding per * slash-separated segment keeps the URL readable (`#/file/src/mcp/tools.ts`) * and still round-trips a segment that itself contains a reserved character.

(value: string)

Source from the content-addressed store, hash-verified

110 * and still round-trips a segment that itself contains a reserved character.
111 */
112function encodePath(value: string): string {
113 return value.split('/').map(encodeURIComponent).join('/');
114}
115
116function query(params: URLSearchParams): string {
117 const text = params.toString();

Callers 2

symbolHrefFunction · 0.70
fileHrefFunction · 0.70

Calls 2

mapMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected