Predicate resolveMainModule
Gets the main module described by pkg
with the given priority
.
Import path
import semmle.javascript.NodeModuleResolutionImpl
File resolveMainModule(PackageJson pkg, int priority, string exportPath)
Gets the main module described by pkg
with the given priority
.
import semmle.javascript.NodeModuleResolutionImpl
File resolveMainModule(PackageJson pkg, int priority, string exportPath)