Home > @gglib/utils > DataUri

DataUri class

Describes parts of a data Uri


export declare class DataUri 


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


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