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 🙏

© 2026 – Pkg Stats / Ryan Hefner

npmytd

v1.1.2

Published

A CLI tool to download YouTube videos or audio.

Readme

███╗ ██╗██████╗ ███╗ ███╗██╗ ██╗████████╗██████╗ ████╗ ██║██╔══██╗████╗ ████║╚██╗ ██╔╝╚══██╔══╝██╔══██╗ ██╔██╗ ██║██████╔╝██╔████╔██║ ╚████╔╝ ██║ ██║ ██║ ██║╚██╗██║██╔═══╝ ██║╚██╔╝██║ ╚██╔╝ ██║ ██║ ██║ ██║ ╚████║██║ ██║ ╚═╝ ██║ ██║ ██║ ██████╔╝ ╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝

A simple and interactive command-line interface (CLI) tool for downloading YouTube videos and audio (MP3 or MP4) in various qualities.

Features

  • Interactive Prompts: Guides you through the download process.
  • MP4 Video Download: Download videos in your desired quality.
  • MP3 Audio Download: Extract and convert audio to MP3 format.
  • Quality Selection: Choose between highest, medium, or lowest quality.
  • Progress Indicator: See the download progress in real-time.
  • Output Path Customization: Specify where to save your downloads.

Prerequisites

Before installing and using npmytd, ensure you have the following installed on your system:

  • Node.js: Version 18 or higher. You can download it from nodejs.org.
  • ffmpeg: Required for MP3 audio conversion. If you only plan to download MP4 videos, ffmpeg is not strictly necessary.
    • You can download ffmpeg from ffmpeg.org/download.html.
    • After downloading, make sure ffmpeg is added to your system's PATH environment variable so that npmytd can find it.

Installation

To install npmytd globally, open your terminal or command prompt and run:

npm install -g npmytd

This will make the npmytd command available system-wide.

Usage

To start a download, simply run the npmytd command in your terminal:

npmytd

The CLI will then guide you through a series of prompts:

  1. YouTube video URL or ID: Enter the full URL of the YouTube video or just its video ID (e.g., dQw4w9WgXcQ).
  2. Output format: Choose between MP4 (Video) or MP3 (Audio).
  3. Desired quality: Select Highest, Medium, or Lowest quality for your chosen format.
  4. Output directory: Specify the path where you want to save the downloaded file. A default path (current working directory) with a sanitized video title will be suggested.

Example Walkthrough

$ npmytd

Welcome to NPMYTD - YouTube Downloader CLI!

? Enter YouTube video URL or ID: https://www.youtube.com/watch?v=dQw4w9WgXcQ
? Select output format: MP4 (Video)
? Select desired quality for MP4: Highest (Best available video quality)
? Enter output directory (absolute or relative path): C:\Users\GraphStats\Desktop\MyDownloads\Never-Gonna-Give-You-Up-Official-Music-Video.mp4

Downloading "Rick Astley - Never Gonna Give You Up (Official Music Video)" as MP4...
[========================================] 100% | ETA: 0s | total: 4.8MB

Download completed: C:\Users\GraphStats\Desktop\MyDownloads\Never-Gonna-Give-You-Up-Official-Music-Video.mp4

Process completed successfully!

Troubleshooting

  • ffmpeg not found for MP3 conversion: If you selected MP3 format and encounter an error about ffmpeg not being found, it's because yt-dlp (which npmytd uses for downloads) requires ffmpeg to extract and convert audio to MP3. Please ensure ffmpeg is installed and properly added to your system's PATH.
  • Video Unavailable or yt-dlp errors: Some YouTube videos may be age-restricted, private, or have been removed. Additionally, YouTube frequently updates its website, which can sometimes cause yt-dlp to fail temporarily. If you encounter errors, please ensure yt-dlp is up to date (yt-dlp -U) and ffmpeg is correctly installed.

License

This project is licensed under the MIT License.

Author

GraphStats