is-video-web
v2.0.1
Published
Check if a filepath is a video file in a web browser
Downloads
407
Maintainers
Readme
is-video
Check if a filepath is a video file
Install
$ npm install --save is-video
Usage
var isVideo = require('is-video');
isVideo('src/unicorn.mp4');
//=> true
isVideo('src/unicorn.txt');
//=> false
Related
- video-extensions - List of video file extensions
License
MIT © Sindre Sorhus