# m3u8-stream-list

> Return all awailable streams from m3u8 playlist

Latest version **1.1.0** (published 2016-05-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install m3u8-stream-list
pnpm add m3u8-stream-list
yarn add m3u8-stream-list
bun add m3u8-stream-list
```

## 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.1.0 |
| Published | 2016-05-01 |
| First published | 2016-04-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 13 |
| Author | Dmitry Tsvettsikh |
| Maintainers | reklatsmasters |
| Keywords | twitch, twich, m3u8, m3u |

## Links

- npm: https://www.npmjs.com/package/m3u8-stream-list
- Repository: https://github.com/reklatsmasters/m3u8-stream-list
- Homepage: https://github.com/reklatsmasters/m3u8-stream-list#readme
- Issues: https://github.com/reklatsmasters/m3u8-stream-list/issues
- npm.io page: https://npm.io/package/m3u8-stream-list

## Dependencies (1)

- [m3u8-reader](https://npm.io/package/m3u8-reader.md) ^1.0.0

## Recent versions

- 1.1.0 (latest) — 2016-05-01
- 1.0.0 — 2016-04-30

## README

# m3u8-stream-list
[![travis](https://travis-ci.org/ReklatsMasters/m3u8-stream-list.svg)](https://travis-ci.org/ReklatsMasters/m3u8-stream-list)
[![npm](https://img.shields.io/npm/v/m3u8-stream-list.svg)](https://npmjs.org/package/m3u8-stream-list)
[![license](https://img.shields.io/npm/l/m3u8-stream-list.svg)](https://npmjs.org/package/m3u8-stream-list)
[![downloads](https://img.shields.io/npm/dm/m3u8-stream-list.svg)](https://npmjs.org/package/m3u8-stream-list)

Return all awailable streams from m3u8 playlist

## Example

#### input
```
#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=3454382,RESOLUTION=1280x720,VIDEO="chunked"
http://1.example.com/index-live.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=1760000,RESOLUTION=1280x720,VIDEO="high"
http://2.example.com/index-live.m3u8
```

#### output
```json
[ 
  { "BANDWIDTH": "3454382",
    "RESOLUTION": "1280x720",
    "VIDEO": "chunked",
    "url": "http://1.example.com/index-live.m3u8" 
  },
  { "BANDWIDTH": "1760000",
    "RESOLUTION": "1280x720",
    "VIDEO": "high",
    "url": "http://2.example.com/index-live.m3u8"
  }
]
```

## Usage

```js
const m3u8 = require('m3u8-stream-list')
const fs = require('fs')
const playlist = fs.readdirSync('test.m3u8', 'utf8')

console.log(m3u8(playlist))
```

## API
#### **`module.exports = (data: String|Buffer): {url: string, ...}[]`**

## License
MIT, 2016 (c) Dmitry Tsvettsikh

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