How do i check the existence of a file?
In the documentation for the module fs there\'s a description of the method fs.exists(path, cal
fs
There are a lot of inaccurate comments about fs.existsSync() being deprecated; it is not.
fs.existsSync()
https://nodejs.org/api/fs.html#fs_fs_existssync_path
Note that fs.exists() is deprecated, but fs.existsSync() is not.