exists-stat

1.0.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    26,638
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    26,638

Package Sidebar

Install

npm i exists-stat

Weekly Downloads

26,638

Version

1.0.0

License

MIT

Last publish

Collaborators

  • trentmwillis