MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / bytes

Function bytes

apps/cloud/scripts/start-closure.mjs:77–77  ·  view source on GitHub ↗
(files)

Source from the content-addressed store, hash-verified

75};
76
77const bytes = (files) => [...files].reduce((sum, f) => sum + (graph.get(f)?.size ?? 0), 0);
78const mb = (n) => `${(n / 1024 / 1024).toFixed(2)} MB`;
79const name = (f) => relative(DIST, f);
80

Callers 2

reportFunction · 0.85
start-closure.mjsFile · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected