duplex-transform
Streams2 syntactic sugar for making wrapping + piping duplex streams with transforms (like encoding/decoding).
npm install duplex-transform
Use Case
Say you have a duplex stream, and it's super cool. Except that it speaks some protocol you don't particularly like, so you want to transform it to something else. It's a bit annoying to have to make three streams and pipe them every time. This tiny module makes this a tiny bit nicer.
This module uses + plays well with through2 and common transform stream patterns.
Example
var dgramStream = var duplexTransform = var ugly = ugly { this } { this } var fancy = duplexTransformprocessstdin