Writable stream

A Node.js stream you write data to, such as a file being written, an HTTP response or a socket.

In more detail

write(chunk) returns false once the internal buffer has reached highWaterMark, which means stop and wait for the drain event. end() says no more data will come, and finish fires when everything has been flushed.

Related terms

Taught in

References