Class Dependencies::NPMDependency

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

This may either be a bundled NPM package that is included in the source tree, or a package that is referenced as a dependency in a package.json file.

Direct supertypes

Indirect supertypes

Known direct subtypes

Predicates

getAUse

A use of this dependency, which is of the given kind.

getAnImport

Gets an import that imports to this module.

getNPMPackageName

Gets the name of the NPM package this module belongs to.

getVersion

Gets the version of the NPM package this module belongs to.

info

Holds if this dependency has identifier id and version v.

Inherited predicates

getEndLine

Gets the line on which this element ends.

from Locatable
getFile

Gets the file this program element comes from.

from Locatable
getLocation

Gets this element’s location.

from Locatable
getNumLines

Gets the number of lines covered by this element.

from Locatable
getStartLine

Gets the line on which this element starts.

from Locatable
toString

Gets a textual representation of this element.

from Locatable