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

Function normalizePath

deps/npm/test/lib/utils/get-workspaces.js:5–7  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3const getWorkspaces = require('../../../lib/utils/get-workspaces.js')
4
5const normalizePath = p => p
6 .replace(/\\+/g, '/')
7 .replace(/\r\n/g, '\n')
8
9const cleanOutput = (str, path) => normalizePath(str)
10 .replace(normalizePath(path), '{PATH}')

Callers 1

cleanOutputFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected