CodeQL library for JavaScript/TypeScript
codeql/javascript-all 2.1.1-dev (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()