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

Function normalizeWindowsPaths

packages/client/tests/unit.utils.test.ts:9–14  ·  view source on GitHub ↗
(files: string[])

Source from the content-addressed store, hash-verified

7const noop = () => {};
8
9const normalizeWindowsPaths = (files: string[]) => {
10 if (process.platform === 'win32') {
11 return files.map(f => f.replace(/\\/g, '/'));
12 }
13 return files;
14};
15
16const toAbsolutePaths = (cwd: string, files: string[]) =>
17 files.map(p => join(cwd, p));

Callers 1

unit.utils.test.tsFile · 0.70

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected