{"repo":"microlinkhq/youtube-dl-exec","free":true,"listed":false,"github":"https://github.com/microlinkhq/youtube-dl-exec","clone":"git clone https://github.com/microlinkhq/youtube-dl-exec.git","description":"Promise-friendly Node.js wrapper around youtube-dl / yt-dlp for downloading media.","language":"JavaScript","stars":613,"topics":["youtube-dl","yt-dlp","audio","binary","download","exec","media","stream","video","wrapper"],"license":"MIT","category":"media-processing","readme_excerpt":"&nbsp; A simple Node.js wrapper for yt-dlp. Why - Auto install the latest yt-dlp version available. - Executes any command in an efficient way. - Promise & Stream interface support. Install Note : It requires Python 3.9 or above available in your system as python3 . Otherwise, the library will throw an error. By default, the library will auto-install the latest yt-dlp available that will downloaded on build time. Usage Any yt-dlp flags is supported: It's equivalent to: Type yt-dlp --help for seeing all of them. Custom binary In case you need, you can specify your own binary path using .create : Progress bar Since the library is returning a promise, you can use any library that makes a progress estimation taking a promise as input: Alternatively, you can access to the subprocess to have more granular control. See youtubedl.exec. Also, combine that with YOUTUBE DL SKIP DOWNLOAD. See environment variables to know more. Plugins In order to use yt-dlp plugins, you just need to create a plugin.zip file inside yt-dlp-plugins directory under the same binaty path. For example, if you are using the default binary path: Then the plugins should be placed at: For more detailed information you can see yt-dlp's plugins installation guide: yt-dlp#installing-plugins. Timeout & cancellation You can customize spawn#options by passing a third argument: You can also interact with the subprocess programmatically: API youtubedl(url, [flags], [options]) It execs any yt-dlp command, returning back th","default_branch":null,"files":null,"tree":[],"storefront":"/r/microlinkhq","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/microlinkhq/youtube-dl-exec/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}