MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / sha256

Function sha256

graph-ui/tools/verify-models.mjs:58–66  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

56const log = (...parts) => console.log('[verify-models]', ...parts);
57
58function sha256(path) {
59 return new Promise((done, fail) => {
60 const hash = createHash('sha256');
61 const stream = createReadStream(path);
62 stream.on('error', fail);
63 stream.on('data', (chunk) => hash.update(chunk));
64 stream.on('end', () => done(hash.digest('hex')));
65 });
66}
67
68/** Eine Zeile im Format von shasum: `<hex> <dateiname>`. */
69function parseSums(text) {

Callers 1

mainFunction · 0.70

Calls 1

updateMethod · 0.80

Tested by

no test coverage detected