1.0.12 • Published 1 month ago

w-dwload-m3u8 v1.0.12

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

w-dwload-m3u8

A download tool for m3u8.

language npm version license gzip file size npm download npm download jsdelivr download

Documentation

To view documentation or get support, visit docs.

Core

w-dwload-m3u8 is basing on N_m3u8DL-CLI.

Installation

Using npm(ES6 module):

Note: w-dwload-m3u8 is mainly dependent on lodash-es and wsemi, and should run in Windows.

npm i w-dwload-m3u8

Example:

Link: [dev source code]

import WDwloadM3u8 from './src/WDwloadM3u8.mjs'

async function test() {

//url
let url = `https://ikcdn01.ikzybf.com/20221214/IEiv7MwN/index.m3u8`

//fp
let fp = './moon01.mp4'

//funProg
let funProg = (prog, nn, na) => {
    console.log('prog', `${prog.toFixed(2)}%`, nn, na)
}

//WDwloadM3u8
await WDwloadM3u8(url, fp, {
    clean: true, //單一程序執行時, 事先清除之前暫存檔, 減少浪費硬碟空間
    funProg,
})

console.log('done:', fp)

} test() .catch((err) => { console.log('catch', err) }) // prog 0.14% 1 708 // prog 1.41% 10 708 // ... // prog 99.86% 707 708 // prog 100.00% 708 708 // done: ./moon01.mp4

1.0.12

1 month ago

1.0.9

2 months ago

1.0.8

2 months ago

1.0.11

2 months ago

1.0.10

2 months ago

1.0.7

2 months ago

1.0.6

2 months ago

1.0.5

2 months ago

1.0.4

2 months ago

1.0.2

2 months ago

1.0.3

2 months ago

1.0.1

3 months ago

1.0.0

3 months ago