MCPcopy
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

resolveFullMethod · 0.80
customResolveMethod · 0.80

Calls 2

isSeparatorMethod · 0.65
isAbsoluteMethod · 0.45

Tested by

no test coverage detected