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

Module Dependencies

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

Import path

import 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.