Is your feature request related to a problem? Please describe.
Presently, fs.exists is deprecated and fs.existsSync is only available if you're not using promises. The exists check is absolutely useful, and it would be really useful to have it available in the fs.promises API.
Describe the solution you'd like
fs.promises,exists or fs.promises.existsSync should work.
Describe alternatives you've considered
- Status Quo: this leaves a weird and very unfortunate gap in our API.
Is your feature request related to a problem? Please describe.
Presently,
fs.existsis deprecated andfs.existsSyncis only available if you're not usingpromises. The exists check is absolutely useful, and it would be really useful to have it available in thefs.promisesAPI.Describe the solution you'd like
fs.promises,existsorfs.promises.existsSyncshould work.Describe alternatives you've considered