MCPcopy Create free account
hub / github.com/omkarcloud/botasaurus / _hash

Function _hash

js/botasaurus-js/src/cache.ts:34–37  ·  view source on GitHub ↗
(data: any)

Source from the content-addressed store, hash-verified

32}
33
34function _hash(data: any): string {
35 const serializedData = JSON.stringify(data);
36 return crypto.createHash('md5').update(serializedData).digest('hex');
37}
38
39function _has(cachePath: string): boolean {
40 return fs.existsSync(cachePath);

Callers 4

createCacheKeyFunction · 0.90
createCacheKeyMethod · 0.90
getScrapersConfigMethod · 0.90
hashMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected