CodeQL library for JavaScript/TypeScript
codeql/javascript-all 0.9.0 (changelog, source)
Search

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)