# @does/exist

> 🗄 Check if a file exists

Latest version **1.1.0** (published 2019-12-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install @does/exist
pnpm add @does/exist
yarn add @does/exist
bun add @does/exist
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2019-12-12 |
| First published | 2018-12-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 39 |
| Author | omrilotan |
| Maintainers | omrilotan |
| Keywords | file, exists, node, fs |

## Links

- npm: https://www.npmjs.com/package/@does/exist
- Repository: https://github.com/omrilotan/mono
- Homepage: https://omrilotan.com/mono/exist/
- Issues: https://github.com/omrilotan/mono/issues
- npm.io page: https://npm.io/package/@does/exist

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 1.1.0 (latest) — 2019-12-12
- 1.0.0 — 2018-12-18

## README

# @does/exist [![](https://img.shields.io/npm/v/@does/exist.svg)](https://www.npmjs.com/package/@does/exist) [![](https://img.shields.io/badge/source--000000.svg?logo=github&style=social)](https://github.com/omrilotan/mono/tree/master/packages/exist)

## Check if a file exists and is writeable

```js
const exist = require('@does/exist');

const fileExists = await exist(join(__dirname, 'index.js'));
```

### Options

#### quiet: `false` (default is `true`)
Will log error messages when trying to access a file that's not there
```js
await exist(path, {quiet: false});
```

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