Understanding Streams in Node.js - NODESOURCE
What's the difference between end and finish events in Node streams - Stack Overflow
Error Handling with nodejs stream - stream.pipe 했을 때 에러 리스너 등록 방법은?
end
and finish
are the same event BUT on different types of Streams
stream.Readable
fires ONLY end and NEVER finishstream.Writable
fires ONLY finish and NEVER endWhy the different naming of the same event?
The only reason I could think of is because of duplex streams (stream.Duplex
), which implement both stream.Readable
and stream.Writable
interfaces