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

wipejs

v1.0.0

Published

High-performance recursive node_modules removal tool

Readme

roomba-js

⚡ High-performance recursive node_modules removal tool for Node.js projects.

Features

  • 🚀 Ultra-fast - Parallel processing with worker threads
  • 🔍 Smart scanning - Recursively finds all node_modules folders
  • 🛡️ Safe removal - Optional protection for workspace projects
  • 💾 Size tracking - Reports disk space freed
  • 🔒 Dry run mode - Preview before deletion
  • 🖥️ Cross-platform - macOS, Windows (WSL/x86/x64/ARM), Linux

Installation

Global

npm install -g roomba-js

Local

npm install --save-dev roomba-js

npx (no install required)

npx roomba-js

Usage

Basic usage (cleans current directory)

roomba-js

Clean specific directory

roomba-js /path/to/project

Dry run (preview only)

roomba-js --dry-run

Verbose output

roomba-js --verbose

Force removal (skip protection checks)

roomba-js --force

Custom worker count

roomba-js --concurrent 8

Options

  • [path] - Directory to clean (default: current directory)
  • -d, --dry-run - Show what would be removed without actually removing
  • -v, --verbose - Verbose output
  • -f, --force - Force removal without protection checks
  • -c, --concurrent <number> - Number of concurrent workers
  • -h, --help - Display help
  • --version - Display version

Performance

roomba-js uses multiple techniques for maximum performance:

  • Parallel processing with Node.js worker threads
  • Batch processing to optimize I/O operations
  • Smart caching to minimize filesystem calls
  • Chunked removal to handle large directories efficiently

Typical performance: 10-50x faster than rm -rf for large projects.

Safety Features

  • Workspace detection - Protects npm/yarn workspaces by default
  • Dry run mode - Preview before deletion
  • Error handling - Continues on individual folder failures
  • Progress tracking - Real-time status updates

Examples

# Clean current directory with verbose output
roomba-js --verbose

# Preview what would be cleaned in a monorepo
roomba-js /path/to/monorepo --dry-run

# Force clean all node_modules (bypass protections)
roomba-js --force

# Use 4 parallel workers
roomba-js --concurrent 4

API

const { RoombaCleaner } = require('roomba-js');

const cleaner = new RoombaCleaner({
  dryRun: false,
  verbose: true,
  force: false,
  concurrent: 4
});

await cleaner.clean('/path/to/project');

License

MIT