title: What is the precise difference between Node.js Readable stream events 'close' and 'end'?
body: <p>I find the Node.js docs to be unclear.</p>
  
  <p>It appears to me that the <a href="https://nodejs.org/api/stream.html#stream_event_close_1" rel="nofollow noreferrer">'close'</a> event will fire once the Readable stream has finished sending its data, regardless if it has been completely consumed or not.</p>
  
  <p>The <a href="https://nodejs.org/api/stream.html#stream_event_end" rel="nofollow noreferrer">'end'</a> event seems to only be fired if all of the data has been consumed from the Readable stream.</p>
  
  <p>What is the actual difference? When will each event be fired?</p>