TextDecoderStream: readable property

Note: This feature is available in Web Workers.

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

Value

Examples

This example shows how to return a ReadableStream from a TextDecoderStream.

js
stream = new TextDecoderStream();
console.log(stream.readable); //a ReadableStream

Specifications

Specification
Streams
# dom-generictransformstream-readable

Browser compatibility

desktopmobileserver
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
Deno
Node.js
readable