Skip to content

Commit

Permalink
Recommend fs.existsSync (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB authored and sindresorhus committed Oct 17, 2016
1 parent 4696c60 commit 67c0725
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

> Check if a path exists
> NOTE: `fs.existsSync` has been un-deprecated in Node.js since 6.8.0. If you only need to check synchronously, this module is not needed.
Because [`fs.exists()`](https://nodejs.org/api/fs.html#fs_fs_exists_path_callback) is being [deprecated](https://github.com/iojs/io.js/issues/103), but there's still a genuine use-case of being able to check if a path exists for other purposes than doing IO with it.

Never use this before handling a file though:
Expand Down

0 comments on commit 67c0725

Please sign in to comment.