MCPcopy
hub / github.com/mswjs/msw / normalizePath

Function normalizePath

cli/init.js:224–226  ·  view source on GitHub ↗

* Normalizes the given path, replacing ambiguous path separators * with the platform-specific path separator. * @param {string} input Path to normalize. * @returns {string}

(input)

Source from the content-addressed store, hash-verified

222 * @returns {string}
223 */
224function normalizePath(input) {
225 return input.replace(/[\\|/]+/g, path.sep)
226}

Callers 1

initFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…