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

Function normalizeFile

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

Source from the content-addressed store, hash-verified

2695}
2696
2697function normalizeFile(cwd: string, filename: string): string {
2698 return normalizePathName(path.relative(cwd, filename))
2699}
2700
2701function hashSource(source: string): string {
2702 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