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

Module NodeJSLib

Import path

import javascript

Predicates

isCreateServer

Holds if call is an invocation of http.createServer or https.createServer.

process

Gets a reference to the ‘process’ object.

Classes

ClientRequestHandler

A data flow node that is registered as a callback for an HTTP or HTTPS request made by a Node.js process, for example the function handler in http.request(url).on(message, handler).

ClientRequestLoginCallback

A data flow node that is the login callback provided by an HTTP or HTTPS request made by a Node.js process, for example callback in http.request(url).on('login', (res, callback) => {}).

Credentials

An expression that is passed as http.request({ auth: <expr> }, ...).

CustomEventEmitter

An instantiation of a class that extends EventEmitter.

NodeJSClientRequest

A data flow node that is an HTTP or HTTPS client request made by a Node.js application, for example http.request(url).

NodeJSEventEmitter

An NodeJS EventEmitter instance. Events dispatched on this EventEmitter will be handled by event handlers registered on this EventEmitter. (That is opposed to e.g. SocketIO, which implements the same interface, but where events cross object boundaries).

NodeJSNetServer

An instance of net.createServer(), which creates a new TCP/IPC server.

ProcessTermination

A call a process-terminating function, such as process.exit.

RequestNode

A Node.js HTTP request.

RequestSource

A Node.js request source.

ResponseNode

A Node.js HTTP response.

ResponseSource

A Node.js response source.

RouteHandler

A function used as an Node.js server route handler.

RouteHandlerCandidate

A function that looks like a Node.js route handler.

RouteSetup
RouteSetupCandidate

A call that looks like a route setup on a Node.js server.

ServerDefinition

An expression that creates a new Node.js server.

StandardRouteHandler

A route handler installed by a route setup.

VmModuleMemberInvocation

An invocation of a member from module vm

Modules

FS

Provides predicates for working with the “fs” module and its variants as a single module.

NodeJSClientRequest
Path

Provides predicates for working with the “path” module and its platform-specific instances as a single module.