Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/patriksimek/vm2
/ pathIsAbsolute
Method
pathIsAbsolute
lib/resolver.js:53–55 ·
view source on GitHub ↗
(path)
Source
from the content-addressed store, hash-verified
51
}
52
53
pathIsAbsolute(path) {
54
return
path !==
''
&& (this.fs.isSeparator(path[0]) || this.fs.isAbsolute(path));
55
}
56
57
lookupPaths(mod, id) {
58
if
(this.pathIsRelative(id))
return
[mod.path ||
'.'
];
Callers
2
resolveFull
Method · 0.80
customResolve
Method · 0.80
Calls
2
isSeparator
Method · 0.65
isAbsolute
Method · 0.45
Tested by
no test coverage detected