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

Predicate DataFlow::moduleImport

Gets a (default) import of the module with the given path, such as require("fs") or import * as fs from "fs".

This predicate can be extended by subclassing ModuleImportNode::Range.

Import path

import javascript
ModuleImportNode moduleImport(string path)