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

Function withScratch

pkg/npm/test/archive-limits.test.js:32–37  ·  view source on GitHub ↗
(callback)

Source from the content-addressed store, hash-verified

30const FORMER_MEMBER_CAP_BYTES = 256 * 1024 * 1024;
31
32function withScratch(callback) {
33 const root = fs.mkdtempSync(path.join(os.tmpdir(), 'cbm-npm-archive-test-'));
34 return Promise.resolve()
35 .then(() => callback(root))
36 .finally(() => fs.rmSync(root, { recursive: true, force: true }));
37}
38
39function releaseEntries(names, executableData) {
40 return names.map((name) => ({

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected