This repository was archived by the owner on Oct 28, 2025. It is now read-only.

Description
@phoddie expressed a desire for this API to support streaming or some other multi-shot API. Let's use this issue to discuss what that might look like.
Note that there is also a WHATWG proposal for base64 encoding. Currently that proposal does not include streaming, with the comment
this could be later implemented in a BinaryEncoderStream / BinaryDecoderStream, or using the same synchronous API as text encoding, using a stream: true option on the encode / decode methods.
For prior art, see the stream option in the TextDecoder API, the encodeInto method in the TextEncoder API, and the TextEncoderStream and TextDecoderStream APIs (which are transform streams).