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 <[email protected]>
Reviewed-By: Juan José Arboleda <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Harshitha K P <[email protected]>
  • Loading branch information
y-hsgw authored Feb 12, 2025
1 parent b07ff55 commit 9ce1fff
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 9ce1fff

Please sign in to comment.