TextEncoderStream: readable property
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since June 2022.
Please take two minutes to fill out our short survey.
Note: This feature is available in Web Workers.
The readable
read-only property of the TextEncoderStream
interface returns a ReadableStream
.
Value
Examples
The following example demonstrates how to return a ReadableStream
from a TextEncoderStream
object.
js
const stream = new TextEncoderStream();
console.log(stream.readable); //a ReadableStream
Specifications
Specification |
---|
Streams # dom-generictransformstream-readable |