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

Predicate InternalModuleNaming::getPackageRelativePath

Gets the path to mod relative to its enclosing package, including the package name.

Import path

import semmle.javascript.endpoints.EndpointNaming
string getPackageRelativePath(Module mod)