is-video-web

2.0.1 • Public • Published

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

License

MIT © Sindre Sorhus

Package Sidebar

Install

npm i is-video-web

Weekly Downloads

90

Version

2.0.1

License

MIT

Unpacked Size

2.67 kB

Total Files

4

Last publish

Collaborators

  • bobbyg603