# get-youtube-id

> Parse a youtube url returning the video ID.

Latest version **1.0.1** (published 2019-01-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install get-youtube-id
pnpm add get-youtube-id
yarn add get-youtube-id
bun add get-youtube-id
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2019-01-24 |
| First published | 2013-03-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 104 |
| Author | Jeremy Morrell |
| Maintainers | jmorrell |
| Keywords | youtube, url |

## Links

- npm: https://www.npmjs.com/package/get-youtube-id
- Repository: https://github.com/jmorrell/get-youtube-id
- Issues: https://github.com/jmorrell/get-youtube-id/issues
- npm.io page: https://npm.io/package/get-youtube-id

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2019-01-24
- 1.0.0 — 2015-08-20
- 0.1.3 — 2013-03-14
- 0.1.2 — 2013-03-13
- 0.1.1 — 2013-03-11
- 0.1.0 — 2013-03-11

## README

# get-youtube-id

Parse a youtube url returning the video ID.

## Installation

```
npm install get-youtube-id
```

## Example

``` js
var getYouTubeID = require('get-youtube-id');

var id = getYouTubeID("http://www.youtube.com/watch?v=9bZkp7q19f0");
console.log(id); // "9bZkp7q19f0"


// Or, if you're using ES6 syntax:
import getYouTubeID from 'get-youtube-id';
```

## Fuzzy matching

By default `getYouTubeID` will make a last-ditch effort to look for anything that resembles
an 11-character id. If you want it to be more strict you can turn this off with an options
argument.

```js
var getYouTubeID = require('get-youtube-id');

var id = getYouTubeID("youtube abcdefghijk", {fuzzy: false});
console.log(id); // null
```

# License

MIT

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