exists-promise
v1.0.0
Published
Check if a path exists with a Promise
Readme
exists-promise
Check if a file exists with a Promise.
Example
import exists from 'exists-promise';
exists('./path/to/something')
.then(path => { console.log(`path exists! ${path}`); })
.catch(console.error);