the full package string, compatible to use with the URL constructor.
this string is IS uri-encoded. however, vs-code doc popup may decode the uri-encoded string, giving a deceptive representation.
examples:
jsr:/@scope/package@version/pathnamejsr:/@scope/packagenpm:/package@version/pathnamenpm:/@scope/package@versionnpm:/@scope/package@1.0%20-%201.2 // the version range is "1.0 - 1.2"npm:/@scope/package@%5E29 // the version range is "^9"node:/httpnode:/fs/promisesOptionalscopeoptional 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.
Optionalversionoptional 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.
this string is NOT uri-encoded, unlike href.
a description of a parsed jsr/npm package, that somewhat resembles the properties of regular URL.