pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/nodejs/node/commit/193d1d0e84132a84f509996607c94ef6bfe85a63

mer-b69241e157469407.css" /> doc: document fs.watchFile() bigint option · nodejs/node@193d1d0 · GitHub
Skip to content

Commit 193d1d0

Browse files
cjihrigrichardlau
authored andcommitted
doc: document fs.watchFile() bigint option
This commit documents the bigint option to fs.watchFile(), which has been supported since v10.5.0. PR-URL: #32128 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
1 parent 74b00cc commit 193d1d0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

doc/api/fs.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3369,6 +3369,9 @@ fs.watch('somedir', (eventType, filename) => {
33693369
<!-- YAML
33703370
added: v0.1.31
33713371
changes:
3372+
- version: v10.5.0
3373+
pr-url: https://github.com/nodejs/node/pull/20220
3374+
description: The `bigint` option is now supported.
33723375
- version: v7.6.0
33733376
pr-url: https://github.com/nodejs/node/pull/10739
33743377
description: The `filename` parameter can be a WHATWG `URL` object using
@@ -3377,6 +3380,7 @@ changes:
33773380

33783381
* `filename` {string|Buffer|URL}
33793382
* `options` {Object}
3383+
* `bigint` {boolean} **Default:** `false`
33803384
* `persistent` {boolean} **Default:** `true`
33813385
* `interval` {integer} **Default:** `5007`
33823386
* `listener` {Function}
@@ -3402,7 +3406,8 @@ fs.watchFile('message.text', (curr, prev) => {
34023406
});
34033407
```
34043408

3405-
These stat objects are instances of `fs.Stat`.
3409+
These stat objects are instances of `fs.Stat`. If the `bigint` option is `true`,
3410+
the numeric values in these objects are specified as `BigInt`s.
34063411

34073412
To be notified when the file was modified, not just accessed, it is necessary
34083413
to compare `curr.mtime` and `prev.mtime`.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy