Interface DataUrlParts

Represents the parsed components of a data URL.

interface DataUrlParts {
    base64: string;
    bytesize: number;
    extension: null | string;
    mimeType: string;
}

Properties

base64: string

The base64 encoded data portion of the URL.

bytesize: number

The size of the base64 encoded data in bytes.

extension: null | string

The file extension extracted from the MIME type. e.g., "png". Can be null if no extension is found.

mimeType: string

The MIME type of the data URL. e.g., "image/png".