MCPcopy
hub / github.com/vitejs/vite / fsPathFromUrl

Function fsPathFromUrl

packages/vite/src/node/utils.ts:243–245  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

241}
242
243export function fsPathFromUrl(url: string): string {
244 return fsPathFromId(cleanUrl(url))
245}
246
247/**
248 * Check if dir is a parent of file

Callers 2

isFileServingAllowedFunction · 0.90
transformFunction · 0.90

Calls 2

cleanUrlFunction · 0.90
fsPathFromIdFunction · 0.85

Tested by

no test coverage detected