Lueur Avatar - v0.1.8
    Preparing search index...

    Function stringToHash

    • Hashes a string into a numeric value. Used for deterministic color generation.

      Parameters

      • str: string

        The input string.

      Returns number

      A numeric hash.

      const hash = stringToHash('johndoe'); // Returns consistent numeric hash