MCPcopy Create free account
hub / github.com/nodejs/node / cleanPackumentCache

Function cleanPackumentCache

deps/npm/test/fixtures/clean-snapshot.js:45–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43 .replace(/"size": [0-9]*,/g, '"size": "{size}",')
44
45const cleanPackumentCache = str => str
46 .replace(/heap:[0-9]*/g, 'heap:{heap}')
47 .replace(/maxSize:[0-9]*/g, 'maxSize:{maxSize}')
48 .replace(/maxEntrySize:[0-9]*/g, 'maxEntrySize:{maxEntrySize}')
49
50module.exports = {
51 cleanCwd,

Callers 1

install.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected