Skip to content

Commit a44219d

Browse files
ihiteshsharmatargos
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 c3ae1cf commit a44219d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

doc/api/fs.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5905,6 +5905,18 @@ added: v0.4.7
59055905
The number of bytes written so far. Does not include data that is still queued
59065906
for writing.
59075907
5908+
#### `writeStream.close([callback])`
5909+
<!-- YAML
5910+
added: v0.9.4
5911+
-->
5912+
5913+
* `callback` {Function}
5914+
* `err` {Error}
5915+
5916+
Closes `writeStream`. Optionally accepts a
5917+
callback that will be executed once the `writeStream`
5918+
is closed.
5919+
59085920
#### `writeStream.path`
59095921
<!-- YAML
59105922
added: v0.1.93

0 commit comments

Comments
 (0)