Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

yt-dlp-video

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yt-dlp-video

A robust video downloader built on yt-dlp for downloading and processing video content from various sources.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
109
Maintainers
1
Weekly downloads
 
Created
Source

yt-dlp-video

🎥 The most reliable Node.js video downloader powered by yt-dlp

npm version Downloads License

Download videos from YouTube and 1000+ sites with just a few lines of code! Zero configuration required - we handle the yt-dlp installation automatically.

✨ Key Features

  • 🚀 Simple Promise-based API - Easy to use with async/await
  • 📦 Zero Configuration - Automatic yt-dlp binary installation
  • 🎯 Progress Tracking - Real-time download progress updates
  • ⚙️ Flexible Options - Customize formats, quality, and more
  • 💪 Cross-Platform - Works on Windows, macOS, and Linux
  • 🌐 Universal Support - Compatible with 1000+ video sites

🚀 Installation

npm install yt-dlp-video

That's it! No need to install yt-dlp separately - everything is handled automatically.

📝 Usage

Basic Example

const { downloadVideo } = require('yt-dlp-video');

// Download video in best quality MP4 format
await downloadVideo('https://www.youtube.com/watch?v=VIDEO_ID');

Advanced Options

await downloadVideo('https://youtube.com/watch?v=VIDEO_ID', {
  outputDir: './downloads',  // Where to save the video
  format: 'mp4',            // Video format
  quality: 'best',          // Video quality
  filename: 'my-video'      // Custom filename (without extension)
});

With Progress Tracking

try {
  const result = await downloadVideo('https://youtube.com/watch?v=VIDEO_ID', {
    outputDir: './videos'
  });
  console.log('✅ Download complete!');
} catch (error) {
  console.error('❌ Download failed:', error);
}

// Console output:
// 📥 Download progress: 23.5%
// 📥 Download progress: 47.2%
// 📥 Download progress: 89.7%
// ✅ Download progress: 100%

⚙️ Configuration Options

OptionTypeDefaultDescription
outputDirstringCurrent directoryDirectory where videos will be saved
formatstring'mp4'Video format (mp4, webm, etc.)
qualitystring'best'Video quality (best, worst, or specific resolution)
filenamestringVideo titleCustom filename (without extension)

🌐 Supported Platforms

Download videos from popular platforms including:

  • YouTube
  • Vimeo
  • Twitter
  • TikTok
  • Instagram
  • Facebook
  • And 1000+ more sites!

📋 Requirements

  • Node.js 14 or higher
  • Internet connection (required only for first run)

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🤝 Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the issues page.


Made with ❤️ by the yt-dlp-video team

Keywords

FAQs

Package last updated on 19 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc