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

Function resolvePath

test/fixtures/snapshot/typescript.js:7954–7960  ·  view source on GitHub ↗

* Combines and resolves paths. If a path is absolute, it replaces any previous path. Any * `.` and `..` path components are resolved. Trailing directory separators are preserved. * * ```ts * resolvePath("/path", "to", "file.ext") === "path/to/file.ext" * resolvePath("/path",

(path)

Source from the content-addressed store, hash-verified

7952 * ```
7953 */
7954 function resolvePath(path) {
7955 var paths = [];
7956 for (var _i = 1; _i < arguments.length; _i++) {
7957 paths[_i - 1] = arguments[_i];
7958 }
7959 return normalizePath(ts.some(paths) ? combinePaths.apply(void 0, __spreadArray([path], paths, false)) : normalizeSlashes(path));
7960 }
7961 ts.resolvePath = resolvePath;
7962 /**
7963 * Parse a path into an array containing a root component (at index 0) and zero or more path

Callers 4

mountMethod · 0.85
shouldHandleMethod · 0.85
#toProviderPathMethod · 0.85

Calls 4

normalizeSlashesFunction · 0.85
someMethod · 0.80
normalizePathFunction · 0.70
applyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…