object mode
A stream setting that lets chunks be any JavaScript value, such as parsed records, instead of only strings and Buffers.
In more detail
In object mode highWaterMark counts objects rather than bytes. A Transform can read bytes and write objects by setting only readableObjectMode.
Related terms
- Transform stream — A Duplex stream that changes data as it passes through, such as a compressor, a cipher or a packet parser.
- highWaterMark — A stream option giving how much data its internal buffer should hold before it signals backpressure: bytes normally, or objects in object mode.
Taught in
- Backpressure Engineering: Handling Mismatched I/O — Node.js Internals & Backend Services
- Transform Streams: Custom Packet Decoding & Codecs — Node.js Internals & Backend Services