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

Function isHash

ark/aot/cache.ts:55–55  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

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
55const isHash = (name: string): boolean => /^[\w-]{43}$/.test(name)
56
57// the code writing an answer: arktype's packages by content, as a linked
58// workspace or a repacked tarball changes it without a version, each as the

Callers 3

constructorMethod · 0.85
getMethod · 0.85
snapshotMethod · 0.85

Calls 1

testMethod · 0.80

Tested by

no test coverage detected