the full package string, compatible to use with the URL
constructor.
examples:
jsr:/@scope/package@version/pathname
jsr:/@scope/package
npm:/package@version/pathname
npm:/@scope/package@version
Optional
scopeoptional scope name.
name of the package. the reason why we call it "pkg" instead of "package" is because "package" is a reserved word in javascript.
Optional
versionoptional version string of the package.
the pathname of the subpath that is being accessed within the package. this will always begin with a leading slash ("/"), even if there is no subpath being accessed.
the host contains the full information about the package's string. that is, it has the optional scope information, the package name information, and the optional version information.
a description of a parsed jsr/npm package, that somewhat resembles the properties of regular URL.