MCPcopy
hub / github.com/webpack/webpack / h

Function h

test/cases/large/big-assets/index.js:4–8  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2const fs = require("fs");
3
4const h = url => {
5 const hash = createHash();
6 hash.update(fs.readFileSync(url));
7 return hash.digest("hex");
8};
9
10it("should compile fine", () => {
11 const a = new URL(

Callers 2

index.jsFile · 0.70
module.jsFile · 0.50

Calls 3

createHashFunction · 0.85
updateMethod · 0.45
digestMethod · 0.45

Tested by

no test coverage detected