Skip to content

Commit

Permalink
doc: specify how fs.WriteStream/ReadStreams are created
Browse files Browse the repository at this point in the history
Alternative to #33841

Co-authored-by: zombieleet <zombieleetnca@gmail.com>

PR-URL: #34188
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
jasnell authored and addaleax committed Sep 27, 2020
1 parent 074299e commit a3d18c0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions doc/api/fs.md
Expand Up @@ -605,8 +605,8 @@ added: v0.1.93

* Extends: {stream.Readable}

A successful call to `fs.createReadStream()` will return a new `fs.ReadStream`
object.
Instances of `fs.ReadStream` are created and returned using the
[`fs.createReadStream()`][] function.

### Event: `'close'`
<!-- YAML
Expand Down Expand Up @@ -1028,6 +1028,9 @@ added: v0.1.93

* Extends {stream.Writable}

Instances of `fs.WriteStream` are created and returned using the
[`fs.createWriteStream()`][] function.

### Event: `'close'`
<!-- YAML
added: v0.1.93
Expand Down Expand Up @@ -5798,6 +5801,7 @@ the file contents.
[`fs.chmod()`]: #fs_fs_chmod_path_mode_callback
[`fs.chown()`]: #fs_fs_chown_path_uid_gid_callback
[`fs.copyFile()`]: #fs_fs_copyfile_src_dest_flags_callback
[`fs.createReadStream()`]: #fs_fs_createreadstream_path_options
[`fs.createWriteStream()`]: #fs_fs_createwritestream_path_options
[`fs.exists()`]: fs.html#fs_fs_exists_path_callback
[`fs.fstat()`]: #fs_fs_fstat_fd_options_callback
Expand Down

0 comments on commit a3d18c0

Please sign in to comment.