Overview of ytdlp-nodejs
mainytdlp-nodejs is a Node.js wrapper for the yt-dlp command-line tool. It allows developers to integrate video downloading, streaming, and metadata extraction into Node.js applications without manually managing child processes or parsing CLI output.
Key capabilities include:
- Downloading: Saving video/audio to disk with progress tracking.
- Streaming: Piping data directly to Node.js streams (e.g., Express responses).
- Metadata Extraction: Fetching typed video information, formats, and playlists.
- Binary Management: Automatic handling of the
yt-dlpexecutable. - Customization: Support for all
yt-dlpfeatures (subtitles, cookies, custom formats) and raw argument passing.