Module NodeJS

Provides classes for working with Node.js modules.

Import path

semmle.javascript.NodeJS

Imports

javascript

Provides classes for working with JavaScript programs, as well as JSON, YAML and HTML.

Predicates

findNodeModulesFolder

Holds if nodeModules is a folder of the form <prefix>/node_modules, where <prefix> is a (not necessarily proper) prefix of f and does not end in /node_modules, and distance is the number of path elements of f that are missing from <prefix>.

Classes

ModuleAccess

A reference to the special module variable.

NodeModule

A Node.js module.

Require

A require import.