MCPcopy Index your code
hub / github.com/PatrickSys/codebase-context / hashPath

Function hashPath

src/eval/harness.ts:100–102  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

98}
99
100function hashPath(filePath: string): string {
101 return crypto.createHash('sha1').update(normalizePath(filePath)).digest('hex').slice(0, 8);
102}
103
104export function countUtf8Bytes(value: string): number {
105 return Buffer.byteLength(value, 'utf-8');

Callers 1

formatPathFunction · 0.85

Calls 1

normalizePathFunction · 0.70

Tested by

no test coverage detected