npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

is-video

2.0.0

@sindresorhus

npmHomeRepoSnykSocket
Downloads:30559
$ npm install is-video
DailyWeeklyMonthlyYearly

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