plexer
v3.0.0
Published
Create a duplex stream from a readable and a writable stream.
Downloads
247,683
Maintainers
Readme
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
Functions
Duplexer
Create a duplex stream from a readable and a writable stream.cd
Kind: global class
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 |