dew-downloader
v1.0.2
Published
A powerful multi-platform media downloader supporting YouTube, TikTok, Pinterest, and more. Built for easy expansion and clean API usage.
Maintainers
Readme
DEW Downloader – YouTube Only
A simple and powerful JavaScript module for downloading YouTube audio (MP3) and video (MP4) using the SaveTube API.
Built for speed, reliability, and easy integration into any Node.js project.
🚀 Features
- Download YouTube MP3 (128kbps)
- Download YouTube MP4 (144p → 1080p)
- Auto-detect video ID from any YouTube URL
- Clean and simple API
- Zero browser automation
- Fast & lightweight
📦 Installation
npm install dew-downloader
or with yarn:
yarn add dew-downloader
🚀 Usage
1. Import the downloader
const Youtube = require("dew-downloader").youtube;
🎵 Download YouTube MP3
const Youtube = require("dew-downloader").youtube;
(async () => {
const result = await Youtube.download("https://youtu.be/abc123XYZ00", "mp3");
console.log(result);
})();
🎬 Download YouTube MP4
Default quality = 720p
const Youtube = require("dew-downloader").youtube;
(async () => {
const result = await Youtube.download(
"https://youtu.be/abc123XYZ00",
"720"
);
console.log(result);
})();
Choose other formats:
Format Type
mp3 Audio
144 Video
240 Video
360 Video
480 Video
720 Video
1080 Video
Example selecting 360p:
const result = await Youtube.download("https://youtu.be/abc123XYZ00", "360");
📤 Output Example
{
"status": true,
"code": 200,
"result": {
"title": "Alan Walker - Faded",
"type": "video",
"format": "720",
"thumbnail": "https://i.ytimg.com/vi/abc123XYZ00/0.jpg",
"download": "https://cdn123.xyz/download/video-file.mp4",
"id": "abc123XYZ00",
"key": "ENCRYPTION_KEY_VALUE",
"duration": 214,
"quality": "720",
"downloaded": true
}
}
❗ Error Example
{
"status": false,
"code": 400,
"error": "Invalid YouTube URL"
}
📘 API Reference
download(url, format)
Parameter Type Description
url string YouTube URL
format string "mp3" or video quality (144–1080)
📝 Notes
Uses SaveTube API (No watermark, fast CDN)
Supported only for public YouTube videos
Does NOT bypass age restrictions or private content
🛠 For Updates
More platforms (TikTok, Pinterest, Instagram) will be supported soon.
📄 License
MIT License — Free to use in personal and commercial projects.
❤️ Author
Developed by Hansa Dewmina
---
# 🔥 Want me to generate next?
Just tell me:
**“Generate full project files”**
or
**“Add TikTok/Pinterest support in README”**