Skip to content

Commit 5b90748

Browse files
ihiteshsharmajasnell
authored andcommitted
doc: add documentation for fs.WriteStream.close()
PR-URL: #38610 Fixes: #38606 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
1 parent 417c31b commit 5b90748

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

doc/api/fs.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5971,6 +5971,18 @@ added: v0.4.7
59715971
The number of bytes written so far. Does not include data that is still queued
59725972
for writing.
59735973
5974+
#### `writeStream.close([callback])`
5975+
<!-- YAML
5976+
added: v0.9.4
5977+
-->
5978+
5979+
* `callback` {Function}
5980+
* `err` {Error}
5981+
5982+
Closes `writeStream`. Optionally accepts a
5983+
callback that will be executed once the `writeStream`
5984+
is closed.
5985+
59745986
#### `writeStream.path`
59755987
<!-- YAML
59765988
added: v0.1.93

0 commit comments

Comments
 (0)