I am very confused on Deno documentation. It has ReadableStream
and WritableStream
API, but it doesn’t have a documentation to use it.
I want to read from ReadableStream
and write to WritableStream
, how can I do that in Deno?
I am very confused on Deno documentation. It has ReadableStream
and WritableStream
API, but it doesn’t have a documentation to use it.
I want to read from ReadableStream
and write to WritableStream
, how can I do that in Deno?
Copyright © 2021 Jogjafile Inc.
Here's a basic TypeScript example demonstrating manual use of the
readable
andwritable
parts of aTextEncoderStream
(which is a subtype ofTransformStream
) with verbose console logging:so-73087438.ts
:Covering the entirety of the API for WHATWG Streams is out of scope for a Stack Overflow answer. The following links will answer any question you could ask about these streams:
Deno CLI APIs – ReadableStream | Deno Doc
Deno CLI APIs – WritableStream | Deno Doc
Streams—The definitive guide
Streams API concepts - Web APIs | MDN
Streams API - Web APIs | MDN
ReadableStream - Web APIs | MDN
WritableStream - Web APIs | MDN
Streams Standard