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

Module InternalModuleNaming

Contains predicates for naming individual modules (i.e. files) inside of a package.

These names are not necessarily part of a package’s public API, and so we only used them as a fallback when a publicly-accessible access path cannot be found.

Import path

import semmle.javascript.endpoints.EndpointNaming

Predicates

fallbackModuleName

Holds if (package, name) should be used to refer to code inside mod.

getPackageRelativePath

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