encapsulate-streams
Offer a pipeline of multiple transform streams as a single, encapsulating transform stream
Install
npm install encapsulate-streams
Use
main//=>[ 10, 20, 30, 40 ]
Index
Functions
Functions
encapsulateStreams
▸ encapsulateStreams(...streams: Transform
[]): Transform
Defined in encapsulate-streams.ts:16
Encapsulate multiple transform-streams as a single, encapsulating transform stream.
Parameters:
Name | Type | Description |
---|---|---|
Rest streams |
Transform [] |
Streams to encapsulate |
Returns: Transform
A transform-stream encapsulating given streams