Function dataUri

  • Creates a data URI from a string of data.

    Parameters

    • data: string

      The data to convert to a data URI.

    • mime: string

      The MIME type of the data.

    Returns string

    The data URI.