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

Function normalizePath

test/parallel/test-fs-glob.mjs:397–397  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

395// The call to `join()` with only one argument is important, as
396// it ensures that the proper path seperators are applied.
397const normalizePath = (path) => (isAbsolute(path) ? relative(fixtureDir, path) : join(path));
398
399describe('glob - withFileTypes', function() {
400 const promisified = promisify(glob);

Callers

nothing calls this directly

Calls 3

isAbsoluteFunction · 0.85
relativeFunction · 0.85
joinFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…