MCPcopy
hub / github.com/nashsu/llm_wiki / normalizePath

Function normalizePath

src/lib/path-utils.ts:5–7  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

3 * Windows APIs accept forward slashes, so normalizing to / is safe everywhere.
4 */
5export function normalizePath(p: string): string {
6 return p.replace(/\\/g, "/")
7}
8
9/**
10 * Join path segments with forward slashes.

Callers 15

KnowledgeTreeFunction · 0.90
RawSourcesSectionFunction · 0.90
handleStartResearchFunction · 0.90
handleOpenSavedFunction · 0.90
ActivityPanelFunction · 0.90
handleFileClickFunction · 0.90
LintViewFunction · 0.90
handleOpenPageFunction · 0.90
handleFixFunction · 0.90
handleDeleteOrphanFunction · 0.90
handleCreateFunction · 0.90
SourcesViewFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected