code: function readIntoBuf(stream) {
    return new Promise((resolve, reject) => {
      const chunks = []
  
      stream.on('data', chunk => {
        chunks.push(chunk)
      })
  
      stream.on('error', err => {
        reject(err)
      })
  
      stream.on('end', () => {
        resolve(Buffer.concat(chunks))
      })
    })
  }
docs: Produces a Promise that consumes a Readable entirely into a Buffer