ytdl-pro
v2.1.3
Published
An npm package to download yt videos.
Readme
🎬 YouTube Video Downloader CLI
A simple command-line tool to download YouTube videos and audio in different qualities effortlessly.
✨ Features
- ✅ Download YouTube Videos in different qualities (1080p, 720p, highest)
- ✅ Download Audio Only (MP3 format)
- ✅ Interactive CLI with user-friendly prompts
- ✅ Shows Estimated File Size before download
📌 Installation
🔹 Global Installation (Recommended for CLI Use)
To install the package globally, run:
npm install -g ytdl-proNow you can use it anywhere with:
youtube-downloader🔹 Running Without Installation (Using npx)
If you don’t want to install it globally, run directly using npx:
npx ytdl-pro🔹 Running Locally (For Development or Manual Use)
1️⃣ Clone the repository:
git clone https://github.com/Himanshu110109/yt-downloader.git
cd yt-downloader2️⃣ Install dependencies:
npm install3️⃣ Run the script:
node index.js📚 Usage Example
When you run the command, you will be asked to enter a YouTube video URL, select the format (video/audio), and choose the quality.
youtube-downloaderor
node index.jsor
npx ytdl-proYou will see interactive prompts like this:
🔗 Enter YouTube video URL: https://www.youtube.com/watch?v=xyz123
🎬 Select download format: (video/audio)
🎬 Select video quality: (highest/1080p/720p)
📂 Estimated File Size: 50 MB
📥 Do you want to continue with the download? (Y/n)🛠 Dependencies
This package uses:
@distube/ytdl-core– for video/audio downloadinginquirer– for interactive promptschalk– for colored terminal outputora– for loading spinnersfs-extra– for file system operations
🤝 Contribution
If you find any bugs or have feature suggestions, feel free to open an issue or submit a pull request! 😃
🔗 GitHub Repo: https://github.com/Himanshu110109/yt-downloader
📜 License
📝 Apache 2.0 License – Free to use & modify!
