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

Function pathToFileURL

lib/url.js:1019–1023  ·  view source on GitHub ↗
(path, options)

Source from the content-addressed store, hash-verified

1017// this function, so non-strings can be rejected by underlying implementation.
1018// Public API has to validate input and throw appropriate error.
1019function pathToFileURL(path, options) {
1020 validateString(path, 'path');
1021
1022 return _pathToFileURL(path, options);
1023}
1024
1025module.exports = {
1026 // Original API

Calls

no outgoing calls

Tested by 2

testFunction · 0.40
testFunction · 0.40

Used in the wild real call sites across dependent graphs

searching dependent graphs…