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

Predicate MainModulePath::of

Gets the path to the main entry point of pkg.

Import path

import semmle.javascript.NodeModuleResolutionImpl
MainModulePath of(PackageJson pkg)