An open API service indexing awesome lists of open source software.

https://github.com/appgeist/file-exists

Utility function to check if a file exists and return a Promise
https://github.com/appgeist/file-exists

check exists file filesystem nodejs promis server-side shell utilities

Last synced: about 2 months ago
JSON representation

Utility function to check if a file exists and return a Promise

Awesome Lists containing this project

README

          

# @appgeist/file-exists

[![NPM version][npm-image]][npm-url]
[![License][license-image]][license-url]

Utility function to check if a file exists and return a Promise.

## Usage

```js
const fileExists = require("@appgeist/file-exists");

const found = await fileExists("catz-picture.jpg");
```

## License

The [ISC License](LICENSE).

[npm-image]: https://img.shields.io/npm/v/@appgeist/file-exists.svg?style=flat-square
[npm-url]: https://www.npmjs.com/package/@appgeist/file-exists
[license-image]: https://img.shields.io/npm/l/@appgeist/file-exists.svg?style=flat-square
[license-url]: LICENSE