Re: [w3c/FileAPI] Implement textStream method in Blob interface (PR #221)

@saschanaz commented on this pull request.



> @@ -300,6 +300,7 @@ interface Blob {
   [NewObject] ReadableStream stream();
   [NewObject] Promise<USVString> text();
   [NewObject] Promise<ArrayBuffer> arrayBuffer();
+  [NewObject] ReadableStream textStream();

> What other modes do you envision we'd add?

anything that's in a form of transform stream, like compression/decompression? Not pushing for it, just thinking if `.stream().pipeThrough(new TextDecoderStream())` is too long, then logically that applies to other transform streams too.

But seems this was a conscious choice - I'm ok with it too.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/FileAPI/pull/221#discussion_r3302766276
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/FileAPI/pull/221/review/4362492653@github.com>

Received on Tuesday, 26 May 2026 15:14:57 UTC