CodeQL library for JavaScript
codeql/javascript-all 0.6.2 ( 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 )