MCPcopy
hub / github.com/rollup/plugins / normalizePath

Function normalizePath

packages/pluginutils/src/normalizePath.ts:7–9  ·  view source on GitHub ↗
(filename: string)

Source from the content-addressed store, hash-verified

5const normalizePathRegExp = new RegExp(`\\${win32.sep}`, 'g');
6
7const normalizePath: NormalizePath = function normalizePath(filename: string) {
8 return filename.replace(normalizePathRegExp, posix.sep);
9};
10
11export { normalizePath as default };

Callers 6

legacyFunction · 0.90
transformFunction · 0.90
getMatcherStringFunction · 0.70
createFilterFunction · 0.70
resolveFunction · 0.50
normalizePath.tsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected