@iocium/domhash
    Preparing search index...

    Interface DomHashOptions

    Options for configuring the DOM hashing algorithm.

    interface DomHashOptions {
        algorithm?: "sha256" | "murmur3" | "blake3" | "simhash" | "minhash";
        includeAttributes?: string[];
        includeDataAndAriaAttributes?: boolean;
        layoutAware?: boolean;
        resilience?: boolean;
        shapeVector?: boolean;
    }
    Index

    Properties

    algorithm?: "sha256" | "murmur3" | "blake3" | "simhash" | "minhash"

    The hashing algorithm to use. Can be one of:

    • 'sha256': A cryptographic hash function.
    • 'murmur3': A non-cryptographic hash function known for its speed and quality.
    • 'blake3': A high-speed hash function with strong security.
    • 'simhash': Used for similarity detection in large datasets.
    • 'minhash': Effective for estimating the similarity between sets.
    includeAttributes?: string[]

    Specifies an array of attribute names to include in the hash computation.

    includeDataAndAriaAttributes?: boolean

    If true, includes data-* and aria-* attributes in the hash computation.

    layoutAware?: boolean

    If true, takes layout into account when computing the hash.

    resilience?: boolean

    If true, enables resilience features in the hashing process.

    shapeVector?: boolean

    If true, enables shape vector computation for the DOM structure.