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

Member predicate PackageJson::getPackageName

Gets the name of this package. If the package is located under the package pkg1 and its relative path is foo/bar, then the resulting package name will be pkg1/foo/bar.

string getPackageName()