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

Function isUrl

test/fixtures/snapshot/typescript.js:7558–7560  ·  view source on GitHub ↗

* Determines whether a path starts with a URL scheme (e.g. starts with `http://`, `ftp://`, `file://`, etc.).

(path)

Source from the content-addressed store, hash-verified

7556 * Determines whether a path starts with a URL scheme (e.g. starts with `http://`, `ftp://`, `file://`, etc.).
7557 */
7558 function isUrl(path) {
7559 return getEncodedRootLength(path) < 0;
7560 }
7561 ts.isUrl = isUrl;
7562 /**
7563 * Determines whether a path is an absolute disk path (e.g. starts with `/`, or a dos path

Callers

nothing calls this directly

Calls 1

getEncodedRootLengthFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…