is-video
Version:
Check if a file path is a video file
28 lines (17 loc) • 374 B
Markdown
> Check if a file path is a video file
It just checks the extension.
```sh
npm install is-video
```
```js
import isVideo from 'is-video';
isVideo('src/unicorn.mp4');
//=> true
isVideo('src/unicorn.txt');
//=> false
```
- [video-extensions](https://github.com/sindresorhus/video-extensions) - List of video file extensions