Create a duplex stream from a readable and a writable stream.
Feel free to pull your code if you agree with publishing it under the MIT license.
- Duplexer
-
Create a duplex stream from a readable and a writable stream.cd
- createObjectsDuplexer(optionsOrWritableStream, writableStreamOrReadableStream, maybeReadableStream) ⇒
-
A shortcut for
new Duplexer({objectMode: true}, writable, readable)
. - createDuplexer(optionsOrWritableStream, writableStreamOrReadableStream, maybeReadableStream) ⇒
-
A functional version of Duplexer.
Create a duplex stream from a readable and a writable stream.cd
Creates the Duplexer instance
Returns: Duplexer
Param | Type | Description |
---|---|---|
optionsOrWritableStream | options or the writable stream | |
writableStreamOrReadableStream | writable or readable stream | |
a | maybeReadableStream |
readable stream |
createObjectsDuplexer(optionsOrWritableStream, writableStreamOrReadableStream, maybeReadableStream) ⇒
A shortcut for new Duplexer({objectMode: true}, writable, readable)
.
Kind: global function
Returns: Duplexer
Param |
---|
optionsOrWritableStream |
writableStreamOrReadableStream |
maybeReadableStream |
A functional version of Duplexer.
Kind: global function
Returns: Duplexer
Param |
---|
optionsOrWritableStream |
writableStreamOrReadableStream |
maybeReadableStream |