ytplaylist-dl

1.0.1 • Public • Published

ytplaylist-dl

download entire YouTube playlists at once

Install

$ npm install ytplaylist-dl

Usage

const ytpdl = require('ytplaylist-dl');
 
(async () => {
    await ytpdl("https://www.youtube.com/playlist?list=PLfpHPxe91z9NEwLMsxfmAehlZnoTzRFB8", "Desktop",{format:"mp4"});
 
    let videos = await ytpdl("YouTube url....", "Desktop");
    //videos = [ "Desktop/Video1" , "Desktop/Video2", .....]
})();

API

ytpdl(url, output, [options])

Downloads all videos from the playlist and saves them under the output Path. Returns a Promise with a path to all downloaded videos.

url

Type: string

Url to the YouTube Playlist. If the provided video is a normal YouTube video, the single video will be downloaded. Plalist urls can be

output

Type: string

Where to save the videos.

options

Type: Object

{
    format:"mp4"
    quality:"highest"
}
  • format The video format of the downloaded Videos.
  • quality The quality of the video see ytdl-core quality.

Related

License

MIT © Julian Beck

Package Sidebar

Install

npm i ytplaylist-dl

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

5.02 kB

Total Files

3

Last publish

Collaborators

  • jufabeck2202