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

Function pathIsBareSpecifier

test/fixtures/snapshot/typescript.js:7608–7610  ·  view source on GitHub ↗

* Determines whether a path is neither relative nor absolute, e.g. "path/to/file". * Also known misleadingly as "non-relative".

(path)

Source from the content-addressed store, hash-verified

7606 * Also known misleadingly as "non-relative".
7607 */
7608 function pathIsBareSpecifier(path) {
7609 return !pathIsAbsolute(path) && !pathIsRelative(path);
7610 }
7611 ts.pathIsBareSpecifier = pathIsBareSpecifier;
7612 function hasExtension(fileName) {
7613 return ts.stringContains(getBaseFileName(fileName), ".");

Callers

nothing calls this directly

Calls 2

pathIsAbsoluteFunction · 0.85
pathIsRelativeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…