# easy-youtube-info

> Stable version:

Latest version **1.0.2** (published 2019-12-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install easy-youtube-info
pnpm add easy-youtube-info
yarn add easy-youtube-info
bun add easy-youtube-info
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2019-12-17 |
| First published | 2019-12-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=6 |
| Dependencies | 5 |
| Unpacked size | 13.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | AvengerSuicide |
| Maintainers | avengersuicide |

## Links

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

## Dependencies (5)

- [url](https://npm.io/package/url.md) ^0.11.0
- [miniget](https://npm.io/package/miniget.md) ^1.6.1
- [m3u8stream](https://npm.io/package/m3u8stream.md) ^0.6.3
- [querystring](https://npm.io/package/querystring.md) ^0.2.0
- [html-entities](https://npm.io/package/html-entities.md) ^1.2.1

## Recent versions

- 1.0.2 (latest) — 2019-12-17
- 1.0.1 — 2019-12-17
- 1.0.0 — 2019-12-16

## README

# easy-youtube-info

# Install

Stable version:

```bash
npm install easy-youtube-info
```

Unstable version:

```bash
npm install AvengerSuicide/easy-youtube-info
```

# Usage

```js
const youtubeInfo = require('easy-youtube-info');

youtubeInfo.searchSong('song name') // i hate u
youtubeInfo.getSongByID('song id') // BiQIc7fG9pA
youtubeInfo.getSongByURL('song url') // https://www.youtube.com/watch?v=BiQIc7fG9pA
```

# Functions Options
### youtubeInfo.searchSong('song name', [options])

* `moreResults` - If you should get more than one result, should be written with a boolean value. `true` or `false`
* `size` - The amount of results that should be obtained, being read only if `moreResults` is 'true'. `number`

### youtubeInfo.getSongByID('song id', [options])

* `lang` - The 2 character symbol of a language. Default is `en`.

### youtubeInfo.getSongByURL('song id', [options])

* `lang` - The 2 character symbol of a language. Default is `en`.

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