Closed guoh27 closed 1 year ago
And
const stream: Node.ReadableStream = ...
const pipeline = chain([...])
stream.pipe(pipeline)
pipeline.on('end', () => {
console.log('end')
}
pipeline will not end after stream is ended
stream-chain
does not support ReadableStream
. It is a part of web streams: https://nodejs.org/api/webstreams.html
stream-chain
was written for Node streams: https://nodejs.org/api/stream.html
Web Streams were added in Node 16 and are still considered experimental. I plan to add them later when they stabilize.
stream-chain
does not supportReadableStream
. It is a part of web streams: https://nodejs.org/api/webstreams.html
stream-chain
was written for Node streams: https://nodejs.org/api/stream.htmlWeb Streams were added in Node 16 and are still considered experimental. I plan to add them later when they stabilize.
@uhop great library! Just wanted to comment that I'm looking forward to WebStream support in the future 👍
I can not write this code in my ts file:
There will has type error