Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

is-video

sindresorhus47.7kMIT2.0.0

Check if a file path is a video file

extensions, extension, file, path, check, detect, is, video, movie, mov, avi, mp4, mkv

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