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

Predicate MainModulePath::of

Gets the path to the file exported from pkg as relativePath.

Import path

import semmle.javascript.NodeModuleResolutionImpl
MainModulePath of(PackageJson pkg, string relativePath)