is-video
v2.0.0
Published
Check if a file path is a video file
Downloads
36,377
Maintainers
Readme
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