@kayahr/text-encoding

    Function createTextEncoder

    • Creates and returns a new text encoder for the given encoding. When encoding is utf-8 then the built-in text encoder (which only supports utf-8) is returned. Otherwise our own implementation is returned for this specific encoding.

      Parameters

      • label: string = "utf-8"

        The encoding label. Defaults to "utf-8".

      Returns TextEncoder | TextEncoder

      The created text encoder.

    MMNEPVFCICPMFPCPTTAAATR