MCPcopy Create free account
hub / github.com/PatrickSys/codebase-context / normalizePathLike

Function normalizePathLike

src/health/derive.ts:22–24  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

20type FileMetricsMap = Map<string, FileMetrics>;
21
22function normalizePathLike(filePath: string): string {
23 return filePath.replace(/\\/g, '/').replace(/^\.\//, '');
24}
25
26function collectFileMetrics(chunks: CodeChunk[], graph: InternalFileGraph): FileMetricsMap {
27 const metrics = new Map<string, FileMetrics>();

Callers 1

collectFileMetricsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected