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

Function getNormalizedPathComponents

test/fixtures/snapshot/typescript.js:7972–7974  ·  view source on GitHub ↗

* Parse a path into an array containing a root component (at index 0) and zero or more path * components (at indices > 0). The result is normalized. * If the path is relative, the root component is `""`. * If the path is absolute, the root component includes the first path separator (

(path, currentDirectory)

Source from the content-addressed store, hash-verified

7970 * ```
7971 */
7972 function getNormalizedPathComponents(path, currentDirectory) {
7973 return reducePathComponents(getPathComponents(path, currentDirectory));
7974 }
7975 ts.getNormalizedPathComponents = getNormalizedPathComponents;
7976 function getNormalizedAbsolutePath(fileName, currentDirectory) {
7977 return getPathFromPathComponents(getNormalizedPathComponents(fileName, currentDirectory));

Callers 2

Calls 2

reducePathComponentsFunction · 0.85
getPathComponentsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…