bullmq - v5.77.1
    Preparing search index...

    Function lengthInUtf8Bytes

    • Returns the size of a string in UTF-8 bytes (handles multi-byte characters correctly).

      Parameters

      • str: string

        The string to measure.

      Returns number

      The byte length of the string when encoded as UTF-8.