Files
codeql/javascript/ql/test/library-tests/NodeJS/Require.ql
2018-08-02 17:53:23 +01:00

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