file-check
Version:
Check if path is a file
22 lines (16 loc) • 328 B
Markdown
# File check
> Check if a path is a file
## Installation
```bash
npm install --save file-check
```
## Usage
```javascript
const check = require('file-check');
if (check('my-file')) {
console.log('is a file');
}
```
> Working example in [test.js](https://github.com/tobihrbr/file-check/blob/master/test.js)
## License
MIT