Skip to content

Commit

Permalink
doc: add signal to filehandle.writeFile() options
Browse files Browse the repository at this point in the history
PR-URL: #56804
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Harshitha K P <harshitha014@gmail.com>
  • Loading branch information
y-hsgw authored and targos committed Feb 17, 2025
1 parent 35f89aa commit 3bc6d62
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/api/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -805,6 +805,7 @@ changes:
* `options` {Object|string}
* `encoding` {string|null} The expected character encoding when `data` is a
string. **Default:** `'utf8'`
* `signal` {AbortSignal|undefined} allows aborting an in-progress writeFile. **Default:** `undefined`
* Returns: {Promise}
Asynchronously writes data to a file, replacing the file if it already exists.
Expand Down

0 comments on commit 3bc6d62

Please sign in to comment.