Module Dependencies

Provides classes for modeling dependencies such as NPM packages and framework libraries.

Import path

semmle.javascript.dependencies.Dependencies

Imports

javascript

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

Classes

BundledNPMDependency

A bundled NPM module, that is, a module in a package whose source is included in the database (as opposed to an ExternalNPMDependency which is only referenced in a package.json file).

Dependency

An abstract representation of a dependency.

ExternalNPMDependency

An NPM package referenced in a package.json file.

ExternalScriptDependency

An external JavaScript library referenced via the src attribute of a <script> tag.

InlineScriptDependency

An embedded JavaScript library included inside a <script> tag.

NPMDependency

A module in an NPM package, viewed as a dependency.

ScriptDependency

A plain JavaScript library imported via a <script> tag.