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

Function clean

deps/npm/test/lib/utils/get-workspaces.js:12–18  ·  view source on GitHub ↗
(res, path)

Source from the content-addressed store, hash-verified

10 .replace(normalizePath(path), '{PATH}')
11
12const clean = (res, path) => {
13 const cleaned = new Map()
14 for (const [key, value] of res.entries()) {
15 cleaned.set(key, cleanOutput(value, path))
16 }
17 return cleaned
18}
19
20const path = t.testdir({
21 packages: {

Callers 1

get-workspaces.jsFile · 0.70

Calls 3

cleanOutputFunction · 0.85
entriesMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected