Slide 7
Slide 7 text
through2
• Easy to create stream.Transform and compatible with 0.8-
• through2(option, function
transform(chunk,encoding,callback){},function flush(){})
• ===
• var stream = new MyTransform(option); // extends stream.Transform
stream._transform = transform;
stream._flush = flush;
return stream;