Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
doc: mention objectMode for Writable streams
Browse files Browse the repository at this point in the history
  • Loading branch information
Raynos authored and tjfontaine committed Feb 18, 2014
1 parent 562b015 commit abbde2f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/api/stream.markdown
Expand Up @@ -961,6 +961,9 @@ how to implement Writable streams in your programs.
returning false. Default=16kb
* `decodeStrings` {Boolean} Whether or not to decode strings into
Buffers before passing them to [`_write()`][]. Default=true
* `objectMode` {Boolean} Whether or not the `write(anyObj)` is
a valid operation. If set you can write arbitrary data instead
of only `Buffer` / `String` data. Default=false

In classes that extend the Writable class, make sure to call the
constructor so that the buffering settings can be properly
Expand Down

0 comments on commit abbde2f

Please sign in to comment.