resolve-import
    Preparing search index...
    • Given a path or file URL to a package.json file, return an object where each possible local import path is mapped to the file URL that it would resolve to.

      Invalid and non-resolving imports are omitted.

      Parameters

      Returns Promise<Record<string, string | URL>>