@iocium/domhash
    Preparing search index...

    Interface DomHashResult

    The result of hashing a DOM structure.

    interface DomHashResult {
        canonical: string;
        hash: string;
        layoutCanonical?: string;
        layoutHash?: string;
        layoutShape?: string[];
        resilienceBreakdown?: any;
        resilienceEmoji?: string;
        resilienceLabel?: string;
        resilienceScore?: number;
        shape?: string[];
        stats: { depth: number; tagCount: number };
    }
    Index

    Properties

    canonical: string

    A canonical representation of the DOM structure.

    hash: string

    The computed hash value as a string.

    layoutCanonical?: string

    An optional canonical representation of the layout.

    layoutHash?: string

    An optional layout hash if layout-aware hashing is enabled.

    layoutShape?: string[]

    An optional representation of the layout shape.

    resilienceBreakdown?: any

    An optional breakdown of the resilience score.

    resilienceEmoji?: string

    An optional emoji representing the resilience status.

    resilienceLabel?: string

    An optional label describing the resilience level.

    resilienceScore?: number

    An optional score representing the resilience of the hash against changes.

    shape?: string[]

    An optional representation of the shape of the DOM structure.

    stats: { depth: number; tagCount: number }

    Statistics about the hashed DOM structure.

    Type declaration

    • depth: number

      The depth of the DOM tree.

    • tagCount: number

      The count of unique HTML tags within the DOM structure.