# is-youtube-video

> Check if a url is a youtube video url

Latest version **0.1.1** (published 2015-11-12) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2015-11-12 |
| First published | 2015-11-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | ashaffer88 |

## Links

- npm: https://www.npmjs.com/package/is-youtube-video
- Repository: https://github.com/weo-edu/is-youtube-video
- Issues: https://github.com/weo-edu/is-youtube-video/issues
- npm.io page: https://npm.io/package/is-youtube-video

## Recent versions

- 0.1.1 (latest) — 2015-11-12

## README

# is-youtube-video

[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)

Check if a url is a youtube video url.  Correctly processes the regular watch url, embed url, and shortened sharing url.

## Installation

    $ npm install is-youtube-video

## Usage

`isYoutubeVideo('http://www.google.com') === false`
`isYoutubeVideo('https://www.youtube.com/watch?v=uxpDa-c-4Mc') === true`
`isYoutubeVideo('https://youtu.be/uxpDa-c-4Mc') === true`
`isYoutubeVideo('https://www.youtube.com/embed/uxpDa-c-4Mc') === true`

It is particularly useful in conjunction with: [get-youtube-id](https://github.com/jmorrell/get-youtube-id).

## License

The MIT License

Copyright &copy; 2015, Weo.io &lt;info@weo.io&gt;

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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