Skip to content
masterclass Buddy

Node.js · Class

Writable

A Writable stream is a destination for data. Use write() to send chunks and end() to finish; custom streams process chunks in _write().

Last updated

Syntax

new stream.Writable([options]); writable.write(chunk[, encoding][, callback]); writable.end([chunk[, encoding]][, callback]);

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • stream.Readable
  • stream.Duplex
  • stream.Transform
  • writable.write()
  • writable.end()
  • writable.cork()
  • writable.uncork()
  • Event: 'drain'

Source: Stream | Node.js v24.15.0 Documentation. Checked 2026-11-03.