# youtube-regex

> The correct Youtube video id regex! Regex done right!

Latest version **1.0.5** (published 2015-11-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install youtube-regex
pnpm add youtube-regex
yarn add youtube-regex
bun add youtube-regex
```

## Health

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

Warnings: low downloads; no types; no esm support; has vulnerabilities.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2015-11-18 |
| First published | 2014-12-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.10.33 |
| Dependencies | 0 |
| Known vulnerabilities | 1 |
| Install scripts | no |
| GitHub stars | 87 |
| Author | Charlike Make Reagent |
| Maintainers | tunnckocore |
| Keywords | youtube, youtu.be, regex, regexp, regexps, youtube regex, video id, id, video, url |

## Links

- npm: https://www.npmjs.com/package/youtube-regex
- Repository: https://github.com/regexps/youtube-regex
- Homepage: https://github.com/regexps/youtube-regex#readme
- Issues: https://github.com/regexps/youtube-regex/issues
- npm.io page: https://npm.io/package/youtube-regex

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.5 (latest) — 2015-11-18
- 1.0.4 — 2014-12-14
- 1.0.3 — 2014-12-13
- 1.0.2 — 2014-12-12
- 1.0.1 — 2014-12-12
- 1.0.0 — 2014-12-12
- 0.0.0 — 2014-12-12

## README

# youtube-regex [![NPM version][npmjs-img]][npmjs-url] [![Build Status][travis-img]][travis-url] [![Coveralls][coveralls-img]][coveralls-url] [![regexps org][regexps-img]][regexps-url]
> The correct Youtube video id regex. Regex done right!


## Install [![Nodei.co stats][npmjs-ico]][npmjs-url] 
> Install with [npm](https://npmjs.org)

```
$ npm install youtube-regex
$ npm test
```


## Online
- http://regexr.com/3a2p0
- https://regex101.com/r/rN1qR5/2


## Usage
```js
var youtubeRegex = require('youtube-regex');

// contains youtube url address
youtubeRegex().test('unicorn youtube.com/watch?v=0EWbonj7f18');
//=> true

// also these will works
youtubeRegex().test('youtube.com/watch?v=0EWbonj7f18');
//=> true
youtubeRegex().test('youtube.com/watch?feature=related&v=0EWbonj7f18');
//=> true
youtubeRegex().test('youtube.com/watch?v=0EWbonj7f18&feature=related');
//=> true
youtubeRegex().test('http://www.youtube.com/watch?v=0EWbonj7f18');
//=> true
youtubeRegex().test('http://www.youtube.com/watch?feature=related&v=0EWbonj7f18');
//=> true
```
> For more use-cases see [tests](./test.js)


## Authors & Contributors
**Charlike Mike Reagent** [![author tips][author-gittip-img]][author-gittip]
+ [gittip/tunnckoCore][author-gittip]
+ [github/tunnckoCore][author-github]
+ [twitter/tunnckoCore][author-twitter]
+ [npmjs/tunnckoCore][author-npmjs]
+ [more ...][contrib-more]


## License [![MIT license][license-img]][license-url]
Copyright (c) 2014 [Charlike Mike Reagent][contrib-more], [contributors][contrib-graf].  
Released under the [`MIT`][license-url] license.


[npmjs-url]: http://npm.im/youtube-regex
[npmjs-img]: http://img.shields.io/npm/v/youtube-regex.svg
[npmjs-ico]: https://nodei.co/npm/youtube-regex.svg?mini=true

[coveralls-url]: https://coveralls.io/r/regexps/youtube-regex?branch=master
[coveralls-img]: https://img.shields.io/coveralls/regexps/youtube-regex.svg

[license-url]: https://github.com/regexps/youtube-regex/blob/master/license.md
[license-img]: http://img.shields.io/badge/license-MIT-blue.svg

[travis-url]: https://travis-ci.org/regexps/youtube-regex
[travis-img]: https://travis-ci.org/regexps/youtube-regex.svg

[depstat-url]: https://david-dm.org/regexps/youtube-regex
[depstat-img]: https://david-dm.org/regexps/youtube-regex.svg

[author-gittip-img]: http://img.shields.io/gittip/tunnckoCore.svg
[author-gittip]: https://www.gittip.com/tunnckoCore
[author-github]: https://github.com/tunnckoCore
[author-twitter]: https://twitter.com/tunnckoCore
[author-npmjs]: https://npmjs.org/~tunnckocore

[contrib-more]: http://j.mp/1stW47C
[contrib-graf]: https://github.com/regexps/youtube-regex/graphs/contributors

[regexps-img]: http://img.shields.io/badge/regexps-approved-brightgreen.svg
[regexps-url]: https://github.com/regexps

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