JSPM

is-video

2.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7308
  • Score
    100M100P100Q117512F
  • License MIT

Check if a file path is a video file

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-video

Usage

import isVideo from 'is-video';

isVideo('src/unicorn.mp4');
//=> true

isVideo('src/unicorn.txt');
//=> false