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

Function md5

build-system/common/transform-cache.js:80–86  ·  view source on GitHub ↗

* Returns the md5 hash of provided args. * * @param {...(string|Buffer)} args * @return {string}

(...args)

Source from the content-addressed store, hash-verified

78 * @return {string}
79 */
80function md5(...args) {
81 const hash = crypto.createHash('md5');
82 for (const a of args) {
83 hash.update(a);
84 }
85 return hash.digest('hex');
86}
87
88/**
89 * @typedef {{hash: string, contents: string}} ReadResult

Callers 5

getEnvironmentHashFunction · 0.85
transformCssStringFunction · 0.85
jsifyCssAsyncFunction · 0.85
batchedReadFunction · 0.85
setupFunction · 0.85

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected