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