MCPcopy
hub / github.com/ampproject/amphtml / generateHash

Function generateHash

build-system/common/esbuild-babel.js:204–205  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

202
203 let hash;
204 const generateHash = () =>
205 (hash ||= createHash('sha1').update(text).digest('hex'));
206
207 const file = {
208 path: original.path,

Callers 1

hashFunction · 0.85

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected