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

Function pathKey

graph-ui/src/architecture/source-metrics.ts:41–41  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

39 Markdown: '#a3b2bf', JSON: '#b7bfaa', YAML: '#c3afb0', TOML: '#bbaea2', Unknown: '#81939e',
40};
41const pathKey = (path: string) => path.replaceAll('\\', '/').replace(/^\.\//, '').replace(/\/+/g, '/');
42const compare = (a: string, b: string) => a < b ? -1 : a > b ? 1 : 0;
43
44/** File-type classification, not a claim that an embedded language was parsed. */

Callers 5

sourceLanguageFunction · 0.85
addFileFunction · 0.85
collectSourceMetricsFunction · 0.85
measureSourceNodeFunction · 0.85
sourceNodeSizePercentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected