MCPcopy Create free account
hub / github.com/arktypeio/arktype / hashOf

Function hashOf

ark/aot/cache.ts:50–51  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

48})
49
50export const hashOf = (text: string): string =>
51 createHash("sha256").update(text).digest("base64url")
52
53// what hashOf writes, so a name read from the cache, as an entry's snapshot
54// is, names a file in its directory and no key every object has

Callers 12

createTrackedPrecompilerFunction · 0.90
keyOfFunction · 0.90
markStoredFunction · 0.90
forgeFunction · 0.90
forgeScanFunction · 0.90
isWholeFunction · 0.90
cache.test.tsFile · 0.90
fingerprintOfFunction · 0.70
addSnapshotMethod · 0.70
readMethod · 0.70
writeMethod · 0.70
hashOfFileFunction · 0.70

Calls 1

updateMethod · 0.45

Tested by 4

markStoredFunction · 0.72
forgeFunction · 0.72
forgeScanFunction · 0.72
isWholeFunction · 0.72