plexer
Create a duplex stream from a readable and a writable stream.
Stats
Contributing
Feel free to pull your code if you agree with publishing it under the MIT license.
API
Classes
- Duplexer
Create a duplex stream from a readable and a writable stream.cd
Functions
- createObjectsDuplexer(optionsOrWritableStream, writableStreamOrReadableStream, maybeReadableStream) ⇒
A shortcut for
new Duplexer({objectMode: true}, writable, readable)
.- createDuplexer(optionsOrWritableStream, writableStreamOrReadableStream, maybeReadableStream) ⇒
A functional version of Duplexer.
Duplexer
Create a duplex stream from a readable and a writable stream.cd
new Duplexer(optionsOrWritableStream, writableStreamOrReadableStream, a)
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 |
createDuplexer(optionsOrWritableStream, writableStreamOrReadableStream, maybeReadableStream) ⇒
A functional version of Duplexer.
Kind: global function
Returns: Duplexer
Param |
---|
optionsOrWritableStream |
writableStreamOrReadableStream |
maybeReadableStream |