dew-ytdl
v1.0.1
Published
YouTube MP3 and MP4 downloader using oceansaver.in
Maintainers
Readme
yt-downloader
A simple and lightweight Node.js package for downloading YouTube videos as MP3 (audio) or MP4 (video) using the DEW API.
Perfect for developers building bots, media apps, or automation tools that require direct access to downloadable YouTube content.
🚀 Features
- ✅ Download MP3 audio from YouTube
- ✅ Download MP4 video in high quality (default: 720p)
- ✅ Clean and easy async/await support
- ✅ Automatic progress polling
- ✅ Lightweight and no browser automation
📦 Installation
npm install dew-ytdl
## 📥 Download MP3 (Audio Only)
``` javascript
const YTDownloader = require('dew-ytdl');
const yt = new YTDownloader();
(async () => {
const mp3 = await yt.downloadAudio('https://www.youtube.com/watch?v=dQw4w9WgXcQ');
console.log(mp3);
})();🎥 Download MP4 (Video)
const YTDownloader = require('dew-ytdl');
const yt = new YTDownloader();
(async () => {
const mp4 = await yt.downloadVideo('https://www.youtube.com/watch?v=dQw4w9WgXcQ');
console.log(mp4);
})();📤 Response Format
{
"id": "9d9d2f",
"title": "Video Title",
"image": "https://i.ytimg.com/vi/.../hqdefault.jpg",
"downloadUrl": "https://oceansaver.in/converted/.../video.mp3"
}