Module NodeModuleResolutionImpl
INTERNAL: Do not use directly.
Provides predicates for modeling Node.js module resolution.
Import path
import semmle.javascript.NodeModuleResolutionImpl
Imports
javascript | Provides classes for working with JavaScript programs, as well as JSON, YAML and HTML. |
Predicates
getFileExtensionPriority | Gets the priority with which a given file extension should be found by module resolution. Extensions with a lower numeric priority value are preferred. |
loadAsDirectory | Gets the default main module of the folder that is the resolution target with the given |
loadAsFile | Gets the resolution target with the given |
numberOfExtensions | |
prioritiesPerCandidate | |
resolveMainModule | Gets the main module described by |
tryExtensions | Gets a file in folder |
Classes
MainModulePath | A JSON string in a |
TypingsModulePathString | A JSON string in a |
Modules
MainModulePath | |
TypingsModulePathString | Companion module to the |