is-video

2.0.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    560
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    560
  • 1.0.1
    6,257
  • 1.0.0
    0

Package Sidebar

Install

npm i is-video

Weekly Downloads

6,817

Version

2.0.0

License

MIT

Unpacked Size

2.83 kB

Total Files

4

Last publish

Collaborators

  • sindresorhus