teapub
    Preparing search index...

    Function getImageMimeType

    • get the image mime type of a url

      Throws an Error is if extension doesn't correspond to an ImageMime.

      Parameters

      • href: string

      Returns "image/png" | "image/jpeg" | "image/gif" | "image/svg+xml"