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

Package detail

video-extensions

sindresorhus309.5kMIT2.0.0TypeScript support: included

List of video file extensions

extensions, extension, file, json, list, array, video, movie, mov, avi, mp4, mkv

readme

video-extensions

List of video file extensions

The list is just a JSON file and can be used anywhere.

Install

npm install video-extensions

Usage

import videoExtensions from 'video-extensions';

console.log(videoExtensions);
//=> […, 'webm', 'wmv']
  • is-video - Check if a filepath is a video file