MCPcopy
hub / github.com/freshframework/fresh / systemPathToUrlEncoded

Function systemPathToUrlEncoded

packages/fresh/src/dev/dev_build_cache.ts:555–559  ·  view source on GitHub ↗
(systemPath: string)

Source from the content-addressed store, hash-verified

553}
554
555export function systemPathToUrlEncoded(systemPath: string): string {
556 const normalized = systemPath.replaceAll(WINDOWS_SEPARATOR, "/");
557 const components = normalized.split("/").filter((comp) => comp);
558 return "/" + components.map((comp) => encodeURIComponent(comp)).join("/");
559}
560
561export async function prepareStaticFile(
562 item: PendingStaticFile,

Callers 2

prepareStaticFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected