Home > @gglib/utils > DataUri

DataUri class

Describes parts of a data Uri

Signature:

export declare class DataUri 

Properties

Property Modifiers Type Description
contentType string The detected content type
data string The data portion of the uri
isBase64 boolean Whether the uri contains base64 data
uri string The original uri string

Methods

Method Modifiers Description
isDataUri(uri) static Checks whether a string represents a data uri
parse(uri) static Parses a uri into a data uri object