Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
9
const
cleanOutput = (str, path) => normalizePath(str)
10
.replace(normalizePath(path),
'{PATH}'
)
11
12
const
clean = (res, path) => {
13
const
cleaned =
new
Map()
Callers
1
clean
Function · 0.85
Calls
1
normalizePath
Function · 0.70
Tested by
no test coverage detected