• Converts the stream to a single object. This assumes the stream is in object mode and only contains a single element, otherwise an error will be thrown.

    Parameters

    • stream: Readable

      Object stream with single entry.

    Returns Promise<unknown>