0.0.0 • Published 7 years ago
inwire-end v0.0.0
inwire-end
Push an end message on finish event in streams that can't end
This is useful when you are using underlaying streams that can end or close
themselves, while at application level the stream could be still alive (for
example, changing the underlaying stream, like using a different transport
layer).
You can use several instances of inwire-end in your pipeline, wrapping the
underlaying streams and matching the correct pair like when using parenthesis or
like a matrioska.
Install
npm install inwire-endAPI
duplex
- duplex:
Duplexstream to be wrapped - options
- receiver: options passed to
Readablestream - sender: options passed to
Writablestream
- receiver: options passed to
receiver
- options: options given to underlaying
Transformstream
sender
- options: options given to underlaying
Transformstream
0.0.0
7 years ago