MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / baseNameOf

Function baseNameOf

graph-ui/src/pseudocode/flow-model.ts:214–218  ·  view source on GitHub ↗
(uri: string)

Source from the content-addressed store, hash-verified

212
213/** The last path segment of a URI, which is what a lifeline is labelled with. */
214export function baseNameOf(uri: string): string {
215 const path = uri.split('?')[0].split('#')[0];
216 const segments = path.split('/');
217 return segments[segments.length - 1] || path;
218}
219
220// ---------------------------------------------------------------------------
221// Der Kasten

Callers 4

buildFlowViewFunction · 0.90
loopsOfFunction · 0.90
flowHighlightOfFunction · 0.85
moduleLabelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected