an abstraction for import-map utilities of a general javascript runtime's package object with the schema SCHEMA.

  • in the case of node, SCHEMA would represent package.json's schema.
  • in the case of deno, SCHEMA would represent deno.json, deno.jsonc, or jsr.json's schema.

Hierarchy (View Summary)

Constructors

Properties

packageInfo: DenoJsonSchema

the fetched/parsed package metadata file's raw contents.

importMapSortedEntries: ImportMapSortedEntries

the import-map entries of the package, sorted from the largest key-alias to the shortest.

Note

each subclass will have to assign on their own, in addition to ensuring the required sorting order.

exportMapSortedEntries: ImportMapSortedEntries

the export-map entries of the package, sorted from the largest key-alias to the shortest.

Note

each subclass will have to assign on their own, in addition to ensuring the required sorting order.

Methods