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

Class NpmPackage

An NPM package.

Import path

import javascript

Direct supertypes

Fields

pkg

The package.json file of this package.

Predicates

declaresDependency

Holds if this package declares a dependency on version v of package p.

getAFile

Gets a file belonging to this package.

getAModule

Gets a Node.js module belonging to this package.

getMainModule

Gets the main module of this package.

getNodeModulesFolder

Gets the node_modules folder of this package.

getPackageJSON

DEPRECATED: Alias for getPackageJson

getPackageJson

Gets the package.json object of this package.

getPackageName

Gets the name of this package.

getPath

Gets the full file system path of this package.

toString

Gets a textual representation of this package.

Charpred