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

Function toPosix

packages/fresh/src/dev/dev_build_cache.ts:23–25  ·  view source on GitHub ↗

Normalize a path to use forward slashes so that generated files * are portable across operating systems (e.g. build on Windows, * deploy on Linux).

(p: string)

Source from the content-addressed store, hash-verified

21 * are portable across operating systems (e.g. build on Windows,
22 * deploy on Linux). */
23function toPosix(p: string): string {
24 return p.replaceAll(WINDOWS_SEPARATOR, "/");
25}
26
27export interface MemoryFile {
28 hash: string | null;

Callers 3

flushMethod · 0.85
prepareStaticFileFunction · 0.85
generateServerEntryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected