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

@happyvibess/node-cleaner

v1.2.0

Published

๐Ÿงน Interactive CLI tool to find and clean node_modules directories and free up space

Readme

๐Ÿงน node-cleaner

npm version npm downloads License: MIT

๐Ÿš€ A beautiful CLI tool to find and clean node_modules directories and free up disk space

โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚                                         โ”‚
โ”‚   ๐Ÿงน Node Cleaner v1.2.0                โ”‚
โ”‚   Free up space by removing node_modulesโ”‚
โ”‚                                         โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

โœจ Scanning for node_modules directories...
โœ” Found 3 node_modules directories

๐Ÿ“Š Space usage summary:
   โ”œโ”€ /project1/node_modules (156.2 MB)
   โ”œโ”€ /project2/node_modules (89.4 MB)
   โ””โ”€ /project3/node_modules (124.8 MB)

   Total space used: 370.4 MB

? Select directories to clean: (Press <space> to select)
โฏ โ—ป /project1/node_modules
  โ—ป /project2/node_modules
  โ—ป /project3/node_modules

โœจ Features

  • ๐Ÿ” Smart scanning for node_modules directories
  • ๐Ÿ“Š Interactive selection with directory sizes
  • ๐ŸŽฏ Customizable scan depth
  • ๐Ÿš€ Lightning-fast cleaning
  • ๐Ÿ“ˆ Detailed space usage statistics
  • โšก๏ธ Progress bars and beautiful UI
  • โœ… Safe deletion with confirmation

๐Ÿš€ Installation

# Install globally (recommended)
npm install -g @happyvibess/node-cleaner

# Or use with npx
npx @happyvibess/node-cleaner

๐Ÿ’ป Usage

# Basic usage (scans current directory)
node-cleaner

# Scan specific directory
node-cleaner -p /path/to/directory

# Set maximum scan depth (default: 4)
node-cleaner -d 5

# Skip confirmation (use with caution)
node-cleaner -f

๐Ÿ›  Options

| Option | Description | Default | |--------|-------------|---------| | -p, --path <path> | Directory to scan | Current directory | | -d, --depth <number> | Maximum depth to scan | 4 | | -f, --force | Skip confirmation | false | | -v, --version | Show version | - | | -h, --help | Show help | - |

๐ŸŒŸ Example Output

Cleaning |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 100% || 3/3 directories

โœจ Cleanup complete!

3 directories cleaned
Your project is now lighter and faster
Total space freed: 370.4 MB

๐Ÿค Contributing

Contributions, issues and feature requests are welcome!

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

โ˜• Support

If you find this tool helpful, you can support its development by buying me a coffee!

"Buy Me A Coffee"

๐Ÿ“ License

This project is MIT licensed.