MCPcopy Create free account
hub / github.com/code-forge-io/react-router-devtools / toPosix

Function toPosix

docs/content-collections.ts:50–52  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

48 .join("/")
49
50const toPosix = (s: string) => {
51 return posix.normalize(s.replace(/\\/g, "/"))
52}
53const stripExt = (s: string) => s.replace(/\.(md|mdx)$/i, "")
54const stripTrailingIndex = (s: string) => s.replace(/\/index$/i, "")
55

Callers 1

cleanSlugFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…