# is-video

> Check if a file path is a video file

Latest version **2.0.0** (published 2023-07-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-video
pnpm add is-video
yarn add is-video
bun add is-video
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2023-07-25 |
| First published | 2015-05-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | >=16 |
| Dependencies | 1 |
| Unpacked size | 2.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 32 |
| Author | Sindre Sorhus |
| Maintainers | sindresorhus |
| Keywords | extensions, extension, file, path, check, detect, is, video, movie, mov, avi, mp4, mkv |

## Links

- npm: https://www.npmjs.com/package/is-video
- Repository: https://github.com/sindresorhus/is-video
- Homepage: https://github.com/sindresorhus/is-video#readme
- Issues: https://github.com/sindresorhus/is-video/issues
- npm.io page: https://npm.io/package/is-video

## Dependencies (1)

- [video-extensions](https://npm.io/package/video-extensions.md) ^1.2.0

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 2.0.0 (latest) — 2023-07-25
- 1.0.1 — 2015-05-25
- 1.0.0 — 2015-05-18

## README

# is-video

> Check if a file path is a video file

It just checks the extension.

## Install

```sh
npm install is-video
```

## Usage

```js
import isVideo from 'is-video';

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

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

## Related

- [video-extensions](https://github.com/sindresorhus/video-extensions) - List of video file extensions

---
_Source: https://npm.io/package/is-video · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
