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

Function pathToFileUrlHref

lib/internal/util/inspect.js:201–204  ·  view source on GitHub ↗
(filepath)

Source from the content-addressed store, hash-verified

199let internalUrl;
200
201function pathToFileUrlHref(filepath) {
202 internalUrl ??= require('internal/url');
203 return internalUrl.pathToFileURL(filepath).href;
204}
205
206function isURL(value) {
207 internalUrl ??= require('internal/url');

Callers 1

formatErrorFunction · 0.85

Calls 2

pathToFileURLMethod · 0.80
requireFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…