MCPcopy Create free account
hub / github.com/vercel/vercel / normalizePath

Function normalizePath

packages/build-utils/src/fs/normalize-path.ts:6–8  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

4 * Convert Windows separators to Unix separators.
5 */
6export function normalizePath(p: string): string {
7 return isWin ? p.replace(/\\/g, '/') : p;
8}

Callers 10

relativeFunction · 0.90
toProjectRootDirectoryFunction · 0.90
linkRepoProjectFunction · 0.90
discoverRepoProjectsFunction · 0.90
findProjectsFromPathFunction · 0.90
executeBuildFunction · 0.90
createDetectEntrypointFunction · 0.90
inputRootDirectoryFunction · 0.90
globFunction · 0.90

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected