TextEncoderStream

The TextEncoderStream interface of the Encoding API converts a stream of strings into bytes in the UTF-8 encoding. It is the streaming equivalent of TextEncoder.

MDN Reference

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open val encoding: String

Returns "utf-8".

Link copied to clipboard

The readable read-only property of the TextEncoderStream interface returns a ReadableStream.

Link copied to clipboard
open override val writable: WritableStream<JsString>

The writable read-only property of the TextEncoderStream interface returns a WritableStream.