npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

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.

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”**