Package-level declarations
Types
Duplex streams are streams that implement both the Readable
and Writable
interfaces.
The stream.PassThrough
class is a trivial implementation of a Transform
stream that simply passes the input bytes across to the output. Its purpose is primarily for examples and testing, but there are some use cases where stream.PassThrough
is useful as a building block for novel sorts of streams.
Functions
A stream to attach a signal to.
The utility function duplexPair
returns an Array with two items, each being a Duplex
stream connected to the other side:
A readable and/or writable stream/webstream.
Returns the default highWaterMark used by streams. Defaults to 65536
(64 KiB), or 16
for objectMode
.
Returns whether the stream is readable.
A module method to pipe between streams and generators forwarding errors and properly cleaning up and provide a callback when the pipeline is complete.
Sets the default highWaterMark used by streams.