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
- Host: GitHub
- URL: https://github.com/appgeist/file-exists
- Owner: appgeist
- License: isc
- Created: 2019-07-09T07:21:00.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-02-12T09:18:29.000Z (over 4 years ago)
- Last Synced: 2025-04-20T06:37:54.669Z (about 1 year ago)
- Topics: check, exists, file, filesystem, nodejs, promis, server-side, shell, utilities
- Language: JavaScript
- Size: 174 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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