code: function addToStream(stream) {
    // Don't add more than once
    if (stream.listeners('addListener').includes(addListener)) {
      return stream;
    }
  
    stream.on('newListener', addListener);
  
    return stream;
  }
docs: Add the collect event to the stream
  @param {Stream} stream