MCPcopy
hub / github.com/AutoMaker-Org/automaker / normalizePath

Function normalizePath

apps/ui/src/lib/utils.ts:109–111  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

107 * This is important for cross-platform compatibility (Windows uses backslashes).
108 */
109export function normalizePath(p: string): string {
110 return p.replace(/\\/g, '/');
111}
112
113/**
114 * Compare two paths for equality, handling cross-platform differences.

Callers 3

useDevServersFunction · 0.90
reconcileFunction · 0.90
pathsEqualFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected