CodeQL library for JavaScript
Search

Module API

Provides classes and predicates for working with APIs defined or used in a database.

Import path

import javascript

Predicates

moduleExport

Gets a node corresponding to an export of module m.

moduleImport

Gets a node corresponding to an import of module m.

root

Gets the root node.

Classes

CallNode

A call connected to the API graph.

Definition

A node corresponding to a definition of an API component.

EntryPoint

An API entry point.

InvokeNode

An InvokeNode that is connected to the API graph.

NewNode

A new call connected to the API graph.

Node

An abstract representation of a definition or use of an API component such as a function exported by an npm package, a parameter of such a function, or its result.

Root

The root node of an API graph.

Use

A node corresponding to the use of an API component.

Modules

Node

Provides helper predicates for accessing API-graph nodes.

Aliases