mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
8 lines
230 B
Plaintext
8 lines
230 B
Plaintext
import semmle.javascript.NodeJS
|
|
|
|
from Require r, string fullpath, string prefix
|
|
where
|
|
fullpath = r.getImportedPath().getValue() and
|
|
sourceLocationPrefix(prefix)
|
|
select r, fullpath.replaceAll(prefix, ""), r.getImportedModule()
|