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

Function cleanOutput

deps/npm/test/lib/utils/get-workspaces.js:9–10  ·  view source on GitHub ↗
(str, path)

Source from the content-addressed store, hash-verified

7 .replace(/\r\n/g, '\n')
8
9const cleanOutput = (str, path) => normalizePath(str)
10 .replace(normalizePath(path), '{PATH}')
11
12const clean = (res, path) => {
13 const cleaned = new Map()

Callers 1

cleanFunction · 0.85

Calls 1

normalizePathFunction · 0.70

Tested by

no test coverage detected