Package Exports
- is-video
Readme
is-video
Check if a file path is a video file
It just checks the extension.
Install
npm install is-videoUsage
import isVideo from 'is-video';
isVideo('src/unicorn.mp4');
//=> true
isVideo('src/unicorn.txt');
//=> falseRelated
- video-extensions - List of video file extensions