MCPcopy Create free account
hub / github.com/CreminiAI/skillpack / hashDir

Function hashDir

src/runtime/registry.ts:84–86  ·  view source on GitHub ↗
(dir: string)

Source from the content-addressed store, hash-verified

82}
83
84function hashDir(dir: string): string {
85 return crypto.createHash("md5").update(canonicalizeDir(dir)).digest("hex");
86}
87
88function getEntryPathForCanonicalDir(dir: string): string {
89 return path.join(REGISTRY_DIR, `${hashDir(dir)}.json`);

Callers 1

Calls 1

canonicalizeDirFunction · 0.85

Tested by

no test coverage detected