Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 77ba012

Browse filesBrowse files
aduh95juanarbol
authored andcommitted
doc: fix documentation of FileHandle.prototype.appendFile
PR-URL: #42588 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Mestery <mestery@protonmail.com> Backport-PR-URL: #42603
1 parent 4203d13 commit 77ba012
Copy full SHA for 77ba012

File tree

Expand file treeCollapse file tree

1 file changed

+14
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+14
-1
lines changed
Open diff view settings
Collapse file

‎doc/api/fs.md‎

Copy file name to clipboardExpand all lines: doc/api/fs.md
+14-1Lines changed: 14 additions & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,22 @@ close {FileHandle}s. Node.js may change this behavior in the future.
167167
#### `filehandle.appendFile(data[, options])`
168168
<!-- YAML
169169
added: v10.0.0
170+
changes:
171+
- version: v14.18.0
172+
pr-url: https://github.com/nodejs/node/pull/37490
173+
description: The `data` argument supports `AsyncIterable`, `Iterable` and `Stream`.
174+
- version: v14.12.0
175+
pr-url: https://github.com/nodejs/node/pull/34993
176+
description: The `data` parameter will stringify an object with an
177+
explicit `toString` function.
178+
- version: v14.0.0
179+
pr-url: https://github.com/nodejs/node/pull/31030
180+
description: The `data` parameter won't coerce unsupported input to
181+
strings anymore.
170182
-->
171183

172-
* `data` {string|Buffer|TypedArray|DataView}
184+
* `data` {string|Buffer|TypedArray|DataView|Object|AsyncIterable|Iterable
185+
|Stream}
173186
* `options` {Object|string}
174187
* `encoding` {string|null} **Default:** `'utf8'`
175188
* Returns: {Promise} Fulfills with `undefined` upon success.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.