is-video
v1.0.0 ext extensions extension file path check detect is video and 6 more...
is-video
Check if a file path is a video file
It just checks the extension.
Install
npm install is-video
Usage
import isVideo from 'is-video';
isVideo('src/unicorn.mp4');
//=> true
isVideo('src/unicorn.txt');
//=> false
Related
- video-extensions - List of video file extensions
npm i [email protected]
Metadata
- MIT
- >=0.10.0
- Sindre Sorhus
- released 5/18/2015