Module

std/node/internal/fs/streams.d.ts

Deno standard library
Go to Latest
import * as mod from "https://dotland.deno.dev/std@0.177.0/node/internal/fs/streams.d.ts";

Classes

Instances of fs.ReadStream are created and returned using the createReadStream function.

  • Extends stream.Writable

Functions

Unlike the 16 kb default highWaterMark for a stream.Readable, the stream returned by this method has a default highWaterMark of 64 kb.

options may also include a start option to allow writing data at some position past the beginning of the file, allowed values are in the [0, Number.MAX_SAFE_INTEGER] range. Modifying a file rather than replacing it may require the flags option to be set to r+ rather than the default w. The encoding can be any one of those accepted by Buffer.