MCPcopy Index your code
hub / github.com/nodejs/node / getPathWithoutRoot

Function getPathWithoutRoot

test/fixtures/snapshot/typescript.js:7999–8003  ·  view source on GitHub ↗
(pathComponents)

Source from the content-addressed store, hash-verified

7997 }
7998 ts.normalizePath = normalizePath;
7999 function getPathWithoutRoot(pathComponents) {
8000 if (pathComponents.length === 0)
8001 return "";
8002 return pathComponents.slice(1).join(ts.directorySeparator);
8003 }
8004 function getNormalizedAbsolutePathWithoutRoot(fileName, currentDirectory) {
8005 return getPathWithoutRoot(getNormalizedPathComponents(fileName, currentDirectory));
8006 }

Callers 1

Calls 2

sliceMethod · 0.65
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…