# exists-stat

> Synchronously check if a path exists and returns its stats object if it does

Latest version **1.0.0** (published 2017-03-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install exists-stat
pnpm add exists-stat
yarn add exists-stat
bun add exists-stat
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-03-18 |
| First published | 2017-03-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Trent Willis |
| Maintainers | trentmwillis |

## Links

- npm: https://www.npmjs.com/package/exists-stat
- Repository: https://github.com/trentmwillis/exists-stat
- Homepage: https://github.com/trentmwillis/exists-stat#readme
- Issues: https://github.com/trentmwillis/exists-stat/issues
- npm.io page: https://npm.io/package/exists-stat

## Recent versions

- 1.0.0 (latest) — 2017-03-18

## README

# 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.

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

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

---
_Source: https://npm.io/package/exists-stat · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
