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

rmvnm

v0.0.5

Published

Quickly find and remove node_modules recursively to free up disk space

Readme

rmvnm

A blazing-fast CLI tool to find, analyze, and purge node_modules directories across your filesystem.

Reclaim gigabytes of disk space from old projects, monorepos, and forgotten dev folders — with full visibility before deletion.


Installation

npm install -g rmvnm

Or run directly with npx:

npx rmvnm -p .

Features

  • 🚀 Parallel scanning — processes directories concurrently for maximum speed
  • 📏 Size analysis — calculates and displays size of each node_modules
  • 📊 Clean table output — sorted by size with totals
  • 📈 Progress indicators — real-time spinners and progress bars
  • Safe by default — prompts for confirmation before any deletion
  • 🔒 Symlink-safe — does not follow symlinks unless explicitly enabled
  • 🧠 Smart traversal — skips .git, .cache, and inside node_modules

Usage

rmvnm -p <path>

Examples

Scan current directory:

rmvnm -p .

Scan a specific path:

rmvnm -p ~/projects

Skip confirmation prompt:

rmvnm -p . -y

Limit traversal depth:

rmvnm -p . --max-depth 3

Output results as JSON:

rmvnm -p . --json

Output

✔ Scan complete: 4 node_modules found
Calculating sizes [████████████████████████████████████████] 4/4
┌──────────────────────────────────────────────────────────────┬───────────────┐
│ node_modules path                                            │ size          │
├──────────────────────────────────────────────────────────────┼───────────────┤
│ /projects/webapp/node_modules                                │ 612 MB        │
│ /projects/api/node_modules                                   │ 287 MB        │
│ /projects/shared/node_modules                                │ 98 MB         │
│ /projects/scripts/node_modules                               │ 24 MB         │
└──────────────────────────────────────────────────────────────┴───────────────┘
Found: 4 node_modules
Total: 1 GB
Remove ALL listed node_modules? (y/n):

Options

| Option | Description | | ------------------- | ------------------------------------------ | | -p, --path <path> | Root path to scan (required) | | -y, --yes | Skip confirmation and delete immediately | | --json | Output results as JSON | | --max-depth <n> | Limit directory traversal depth | | --follow-symlinks | Follow symbolic links (disabled by default)|


Safety

  • Prompts for explicit y/n confirmation before any deletion
  • Never traverses inside node_modules — only detects and measures
  • Skips .git and .cache directories during scanning
  • Does not follow symlinks by default to prevent accidents
  • Uses robust deletion with automatic retries

Requirements

  • Node.js 18+
  • macOS, Linux, or Windows

License

MIT