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

Function toPathIfFileURL

lib/internal/url.js:1693–1697  ·  view source on GitHub ↗
(fileURLOrPath)

Source from the content-addressed store, hash-verified

1691}
1692
1693function toPathIfFileURL(fileURLOrPath) {
1694 if (!isURL(fileURLOrPath))
1695 return fileURLOrPath;
1696 return fileURLToPath(fileURLOrPath);
1697}
1698
1699/**
1700 * This util takes a string containing a URL and return the URL origin,

Callers 6

realpathSyncFunction · 0.85
realpathFunction · 0.85
ReadStreamFunction · 0.85
WriteStreamFunction · 0.85
constructorMethod · 0.85
utils.jsFile · 0.85

Calls 2

fileURLToPathFunction · 0.85
isURLFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…