Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "streams/index"

Index

Functions

asBuffer

  • asBuffer(data: any, enc?: string): Promise<Buffer>
  • Returns a value as buffer.

    Parameters

    • data: any

      The input data.

    • Optional enc: string

    Returns Promise<Buffer>

    The promise with the buffer.

asBufferInner

  • asBufferInner(data: any, enc: string, level: number): Promise<Buffer>

readAll

  • readAll(stream: Stream.Readable, enc?: string): Promise<Buffer>
  • Reads the content of a stream.

    Parameters

    • stream: Stream.Readable

      The stream.

    • Optional enc: string

    Returns Promise<Buffer>

    The promise with the content.

Generated using TypeDoc