1.0.0 • Published 7 years ago
exists-promise v1.0.0
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);
1.0.0
7 years ago