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 55b1ecc

Browse filesBrowse files
martforscjihrig
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 174d4e4 commit 55b1ecc
Copy full SHA for 55b1ecc

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
@@ -364,11 +364,11 @@ non-existent.
364364

365365
## fs.existsSync(path)
366366

367+
Stability: 0 - Deprecated: Use [fs.statSync][] or [fs.accessSync][] instead.
368+
367369
Synchronous version of [`fs.exists`][].
368370
Returns `true` if the file exists, `false` otherwise.
369371

370-
Stability: 0 - Deprecated: Use [fs.statSync][] or [fs.accessSync][] instead.
371-
372372
## fs.fchmod(fd, mode, callback)
373373

374374
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.