1
magicdawn 2015 年 6 月 20 日
concat-stream
先concat 再pipe ,比你手动concat考虑的多 |
2
tulayang 2015 年 6 月 24 日
你先要弄清楚什么是stream 流,pipe代表管道,管道到流只有一个通道,而且是不可逆的。你只能s1.pipe(s2).pipe(s3)。想要自由度,需要编写data事件
s1.on('data', d1 => { s2.on('data', d2=> { // code here }) }) |