# m3u8-downloader-multiprocess

> M3u8 downloader - Multi Thread/Auto Merge/Event Monitor/Custom HTTP Referrer

Latest version **1.1.2** (published 2021-03-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install m3u8-downloader-multiprocess
pnpm add m3u8-downloader-multiprocess
yarn add m3u8-downloader-multiprocess
bun add m3u8-downloader-multiprocess
```

## 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.2 |
| Published | 2021-03-01 |
| First published | 2020-04-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 8.7 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 17 |
| Author | reason211 |
| Maintainers | reason211 |
| Keywords | m3u8 downloader, multi thread, auto merge, http referrer, event, monitor |

## Links

- npm: https://www.npmjs.com/package/m3u8-downloader-multiprocess
- Repository: https://github.com/reason211/m3u8-downloader
- Homepage: https://github.com/reason211/m3u8-downloader#readme
- Issues: https://github.com/reason211/m3u8-downloader/issues
- npm.io page: https://npm.io/package/m3u8-downloader-multiprocess

## Dependencies (1)

- [request](https://npm.io/package/request.md) ^2.88.2

## Alternatives

- [async-exit-hook](https://npm.io/package/async-exit-hook.md) — 3.7M weekly downloads
- [evnty](https://npm.io/package/evnty.md) — 7.2K weekly downloads
- [eleventy-plugin-asciidoc](https://npm.io/package/eleventy-plugin-asciidoc.md) — 3.5K weekly downloads
- [@jswork/next-get2get](https://npm.io/package/@jswork/next-get2get.md) — 945 weekly downloads
- [@dashersw/axon](https://npm.io/package/@dashersw/axon.md) — 934 weekly downloads

## Recent versions

- 1.1.2 (latest) — 2021-03-01
- 1.1.1 — 2021-03-01
- 1.1.0 — 2020-04-24
- 1.0.8 — 2020-04-24
- 1.0.7 — 2020-04-24
- 1.0.4 — 2020-04-24

## README

# m3u8-downloader
M3u8 downloader - Multi Thread/Auto Merge/Event Monitor/Custom HTTP Referrer

****Pure Javascript

# How to use
Shell
```shell
npm install m3u8-downloader-concurrency --save
```

Javascript
```javascript
let url = 'https://abc.com/video28912030123/index.m3u8'; //required
let outputDir = '/Users/xxxx/Downloads/tmp'; //required

// let outputFileName = 'output.ts'; //optional
// let threadCount = 5; //optional

// let videoUrlDirPath = 'https://abc.com/video28912030123/'; //optional
// let headerReferrer = 'https://abc.com'; //optional
// let videoSuffix = '.ts'; //optional

// let retryOnError = true; //optional

let downloader = require('m3u8-downloader-concurrency')

let listener = downloader.download({
    url,
    outputDir,
    // outputFileName,
    // threadCount,
    // videoSuffix,
    // videoUrlDirPath,
    // headerReferrer,
    // retryOnError
})

listener.on('start', function (d) {
    console.log("started downloading");
});

listener.on('progress', function (d) {
    console.log(d);
});


listener.on('downloaded', function (d) {
    console.log('downloaded', d);
});


listener.on('complete', function (d) {
    console.log('done', d);
});

listener.on('error', function (e) {
    console.error('error', e);
});

```

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