Constructs package info.
Raw package.json
contents.
Local name within package scope.
Part of the name after the the slash /
for scoped package, or the name itself for unscoped one.
Main entry point of the package.
Collected either from default entry of exports field, or from main field of package.json
.
May be undefined
when neither present.
Full package name as specified in package.json
.
When missing, defaults to -
.
Resolved package scope. I.e. the part of the name after @
prefix, if any.
The type of the package.
This is module
only if package type set to module
. Otherwise, it's a commonjs
.
Package version specified in package.json
.
Defaults to 0.0.0
when missing.
Iterates over package entry points.
Iterable iterator of path/entry point tuples.
Searches for package PackageEntryPoint corresponding to the given export path.
Export path.
Either found entry point, or undefined
if nothing found.
Static
fromExtracts package information from package.json
contents, unless package info constructed already.
Either package.json
contents, or package info instance.
Package info instance.
Static
loadLoads package info from package,json
file at the given path
.
Path to package.json
file. package.json
by default.
Promise resolved to the loaded package info.
Generated using TypeDoc
Information collected for package from its
package.json
.