MCPcopy Create free account
hub / github.com/Effect-TS/effect / normalizeFile

Function normalizeFile

packages/tools/jsdocs/src/Jsdocs.ts:2643–2645  ·  view source on GitHub ↗
(cwd: string, filename: string)

Source from the content-addressed store, hash-verified

2641}
2642
2643function normalizeFile(cwd: string, filename: string): string {
2644 return normalizePathName(path.relative(cwd, filename))
2645}
2646
2647function hashSource(source: string): string {
2648 return crypto.createHash("sha256").update(source).digest("hex")

Callers 3

inlineLinkSymbolFunction · 0.85
computeJSDocInputHashFunction · 0.85
extractJSDocsSyncFunction · 0.85

Calls 1

normalizePathNameFunction · 0.70

Tested by

no test coverage detected