Files
codeql/javascript/ql/test/library-tests/NodeJS/RequireImport.ql
Anders Schack-Mulligen e58094c732 Javascript: Autoformat.
2019-01-11 11:02:42 +01:00

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()