Module Modules

Provides classes for working with JavaScript modules, both ECMAScript 2015-style modules, and the older CommonJS and AMD-style modules.

Import path

semmle.javascript.Modules

Imports

javascript

Provides classes for working with JavaScript programs, as well as JSON, YAML and HTML.

Classes

Import

An import in a module, which may be an ECMAScript 2015-style import statement, a CommonJS-style require import, or an AMD dependency.

Module

A module, which may either be an ECMAScript 2015-style module, a CommonJS module, or an AMD module.

PathExprInModule

A path expression that appears in a module and is resolved relative to it.