MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / normalizeRel

Function normalizeRel

scripts/rehydrate-recovered-src.mjs:25–27  ·  view source on GitHub ↗
(filePath)

Source from the content-addressed store, hash-verified

23}
24
25function normalizeRel(filePath) {
26 return path.relative(SOURCE_ROOT, filePath).replaceAll('\\', '/')
27}
28
29function pickSourceIndex(map, relPath) {
30 if (!Array.isArray(map.sources) || !Array.isArray(map.sourcesContent)) {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected