TextEncoderStream: writable property

Note: This feature is available in Web Workers.

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

Value

Examples

The following example demonstrates how to return a WritableStream from a TextEncoderStream object.

js
stream = new TextEncoderStream();
console.log(stream.writable); // A WritableStream

Specifications

Specification
Streams Standard
# dom-generictransformstream-writable

Browser compatibility

Report problems with this compatibility data on GitHub
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
writable

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support