• Convert a stream-like object to a buffer

    Parameters

    • stream: Stream

      Stream to convert into a buffer object

    Returns Promise<Buffer>

    Promise of a Buffer