Predicate loadAsDirectory
Gets the default main module of the folder that is the resolution target
with the given priority
of req
when resolved from the root with
priority rootPriority
.
Import path
import semmle.javascript.NodeModuleResolutionImpl
File loadAsDirectory(Require req, int rootPriority, int priority)