index.js
function addToStream(stream) {
  // Don't add more than once
  if (stream.listeners('addListener').includes(addListener)) {
    return stream;
  }

  stream.on('newListener', addListener);

  return stream;
}
function addToStream(stream) {
  // Don't add more than once
  if (stream.listeners('addListener').includes(addListener)) {
    return stream;
  }

  stream.on('newListener', addListener);

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