• Returns the contents of a stream as a string

    Parameters

    • stream: Readable

      the stream to read

    • encoding: BufferEncoding = 'utf8'

    Returns Promise<string>