1.0.0 • Published 7 years ago

exists-stat v1.0.0

Weekly downloads
42,845
License
MIT
Repository
github
Last release
7 years ago

exists-stat

Synchronously check if a path exists and returns its stats object if it does. Saves you from needing try-catch statements when trying to get stats information.

existsStat('exists-dir').isDirectory(); // true
existsStat('exists.js').isFile();       //true

existsStat('does-not-exist-dir'); // null
existsStat('does-not-exist.js');  // null