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

@kuneosu/dep-clean

v1.1.2

Published

CLI tool to find and delete dependency/cache directories like node_modules, venv, __pycache__

Readme

dep-clean

English | 한국어

npm version npm downloads

CLI tool to find and delete dependency/cache directories like node_modules, venv, __pycache__, and more.

Installation

npm install -g @kuneosu/dep-clean

Usage

# Scan and select directories to delete (interactive)
dep-clean

# Scan specific directory
dep-clean ./projects

# Preview only (no deletion)
dep-clean --dry-run

# Delete all without selection UI
dep-clean -y

# Delete only specific types
dep-clean --only node_modules
dep-clean --only node_modules,venv

# Exclude specific types
dep-clean --exclude vendor,Pods

# Show help
dep-clean --help

Options

| Option | Description | |--------|-------------| | -y, --yes | Delete all without selection UI | | --dry-run | List directories without deleting | | --only <items> | Only delete specified types (comma-separated) | | --exclude <items> | Exclude specified types (comma-separated) | | -h, --help | Display help | | -V, --version | Display version |

Interactive Selection

In default mode, you can select individual directories to delete using a checkbox UI.

| Key | Action | |-----|--------| | / | Move cursor | | Space | Toggle selection | | a | Toggle all | | Enter | Confirm and delete | | n | Cancel |

Target Directories

| Language/Framework | Directories | |--------------------|-------------| | JavaScript/Node.js | node_modules, .next, dist, build, .parcel-cache, .turbo | | Python | venv, .venv, env, __pycache__, .pytest_cache, .mypy_cache, .egg-info | | Java/Kotlin | target, .gradle | | Rust | target | | Go | vendor | | Ruby | vendor/bundle | | PHP | vendor | | .NET | bin, obj, packages | | iOS/macOS | Pods, DerivedData |

Example Output

🔍 Scanning /Users/k/projects...

Found 5 directories to clean:

  📁 ./project-a/node_modules     (245 MB)
  📁 ./project-b/node_modules     (312 MB)
  📁 ./python-app/venv            (89 MB)
  📁 ./python-app/__pycache__     (2 MB)
  📁 ./rust-app/target            (1.2 GB)

Total: 1.85 GB

? Select directories to delete:
  (Space: toggle, a: toggle all, Enter: confirm, n: cancel)

❯ [x] ./project-a/node_modules     (245 MB)
  [x] ./project-b/node_modules     (312 MB)
  [ ] ./python-app/venv            (89 MB)
  [x] ./python-app/__pycache__     (2 MB)
  [x] ./rust-app/target            (1.2 GB)

✅ Deleted 4 directories, freed 1.76 GB

License

MIT