MCPcopy Create free account
hub / github.com/brillout/react-streaming / toPosixPath

Function toPosixPath

src/utils/path.ts:8–12  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

6assertIsNotBrowser()
7
8function toPosixPath(path: string): string {
9 const pathPosix = path.split('\\').join('/')
10 assertPosixPath(pathPosix)
11 return pathPosix
12}
13
14function assertPosixPath(path: string): void {
15 const errMsg = (msg: string) => `Not a posix path: ${msg}`

Callers 1

Calls 1

assertPosixPathFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…