MCPcopy Create free account
hub / github.com/GCWing/BitFun / sha256File

Function sha256File

BitFun-Installer/scripts/build-installer.cjs:98–101  ·  view source on GitHub ↗
(filePath)

Source from the content-addressed store, hash-verified

96}
97
98function sha256File(filePath) {
99 const content = fs.readFileSync(filePath);
100 return createHash("sha256").update(content).digest("hex");
101}
102
103function writeFileWithManifest(src, dest, manifest, payloadRoot) {
104 fs.mkdirSync(path.dirname(dest), { recursive: true });

Callers 1

writeFileWithManifestFunction · 0.85

Calls 2

digestMethod · 0.80
updateMethod · 0.65

Tested by

no test coverage detected