PHP 7.4.33
Preview: index.js Size: 301 B
/var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/metro-cache-key/src/index.js
"use strict";

const crypto = require("crypto");
const fs = require("fs");
function getCacheKey(files) {
  return files
    .reduce(
      (hash, file) => hash.update("\0", "utf8").update(fs.readFileSync(file)),
      crypto.createHash("md5")
    )
    .digest("hex");
}
module.exports = getCacheKey;

Directory Contents

Dirs: 0 × Files: 2
Name Size Perms Modified Actions
301 B lrw-r--r-- 2025-03-28 11:04:32
Edit Download
579 B lrw-r--r-- 2025-03-28 11:04:32
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).