File input stream for Node.js.

Hierarchy

  • ReadableStream<Uint8Array>
    • FileInputStream

Implements

  • AsyncDisposable

Constructors

Methods

Constructors

  • Creates a new file input stream reading to the given file.

    Parameters

    • filename: string

      The name of the file to read.

    • chunkSize: number = 8192

      The size of the chunks to read from the file.

    Returns FileInputStream

Methods

  • Returns PromiseLike<void>