jspm

Function parseUrlPkg

  • Get the package metadata for the given module or package URL.

    Returns

    Package metadata for the given URL if one of the configured providers owns it, else null.

    The returned metadata will always contain the package name, version and registry, along with the provider name and layer that handles resolution for the given URL.

    Parameters

    • url: string | URL

      URL of a module or package for a configured provider.

    • lookupOptions: LookupOptions = {}

      Optional provider and cache defaults for lookup.

    Returns Promise<ExactModule | null>

Generated using TypeDoc