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

Predicate loadAsFile

Gets the resolution target with the given priority of req when resolved from the root with priority rootPriority.

Import path

import semmle.javascript.NodeModuleResolutionImpl
File loadAsFile(Require req, int rootPriority, int priority)