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

Member predicate PackageJson::getExportedPath

Gets the path to the file exported with the given relative path.

This can be given by the exports property, but also considers main and module paths to be exported under the relative path ".".

string getExportedPath(string relativePath)