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 f55491a

Browse filesBrowse files
martforsMyles Borins
authored andcommitted
doc: move fs.existsSync() deprecation message
This commit moves the deprecation message for fs.existsSync() above the function description, making message placement uniform across the documentation. PR-URL: #3942 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 5bf5688 commit f55491a
Copy full SHA for f55491a

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎doc/api/fs.markdown‎

Copy file name to clipboardExpand all lines: doc/api/fs.markdown
+2-2Lines changed: 2 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -367,11 +367,11 @@ non-existent.
367367

368368
## fs.existsSync(path)
369369

370+
Stability: 0 - Deprecated: Use [fs.statSync][] or [fs.accessSync][] instead.
371+
370372
Synchronous version of [`fs.exists`][].
371373
Returns `true` if the file exists, `false` otherwise.
372374

373-
Stability: 0 - Deprecated: Use [fs.statSync][] or [fs.accessSync][] instead.
374-
375375
## fs.fchmod(fd, mode, callback)
376376

377377
Asynchronous fchmod(2). No arguments other than a possible exception

0 commit comments

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