Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update doc/api/stream.md
Co-authored-by: Rich Trott <rtrott@gmail.com>
  • Loading branch information
rexagod and Trott authored Jun 6, 2020
commit c6b7f8d9489d3804fbbdf0a7979763fd2ce54482
3 changes: 1 addition & 2 deletions doc/api/stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -589,8 +589,7 @@ changes:
not operating in object mode, `chunk` must be a string, `Buffer` or
`Uint8Array`. For object mode streams, `chunk` may be any JavaScript value
other than `null`.
* `encoding` {string} The encoding, if `chunk` is a string. Defaults to `utf8`
if a falsey value is passed.
* `encoding` {string} The encoding, if `chunk` is a string. **Default:** `'utf8'`
* `callback` {Function} Callback for when this chunk of data is flushed
* Returns: {boolean} `false` if the stream wishes for the calling code to
wait for the `'drain'` event to be emitted before continuing to write
Expand Down