exists-promise

1.0.0 • Public • Published

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);

Package Sidebar

Install

npm i exists-promise

Weekly Downloads

2

Version

1.0.0

License

ISC

Last publish

Collaborators

  • cyberlane