MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / slash

Function slash

__tests__/upgrade.test.ts:162–162  ·  view source on GitHub ↗
(p: string | undefined)

Source from the content-addressed store, hash-verified

160 // layout: a global launcher beside the tree, or a project around it.
161 describe('npm scope comes from npm\'s layout, never from cwd (#2477)', () => {
162 const slash = (p: string | undefined) => p?.replace(/\\/g, '/');
163 const winHome = 'C:/Users/X';
164 const winPrefix = `${winHome}/AppData/Roaming/npm`;
165 const winThin = `${winPrefix}/node_modules/@colbymchenry/codegraph/node_modules/@colbymchenry/codegraph-win32-x64/lib/dist/bin/codegraph.js`;

Callers 1

upgrade.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected