Affected URL(s)
https://nodejs.org/docs/latest/api/fs.html
Description of the problem
File system documentation does not indicate that this feature was added recently and can cause confusion.
fs.stat
fsPromises.stat
I don't have my development environment setup right now, otherwise I'd make a quick PR for this.
Changes should probably look something like this:
- version:
- v25.7.0
pr-url: https://github.com/nodejs/node/pull/61178
description: Accepts a `throwIfNoEntry` option to specify whether
an exception should be thrown if the entry does not exist.