| Crates.io | node_module-nuke |
| lib.rs | node_module-nuke |
| version | 0.2.0 |
| created_at | 2025-08-13 05:40:21.183396+00 |
| updated_at | 2025-08-13 06:31:26.719341+00 |
| description | Efficiently delete node_modules directories with nuclear precision |
| homepage | https://github.com/codyaverett/node_module-nuke |
| repository | https://github.com/codyaverett/node_module-nuke |
| max_upload_size | |
| id | 1793304 |
| size | 34,929 |
The nuclear option for those pesky node_modules directories
Are you tired of node_modules directories multiplying like rabbits and eating your disk space? Do you have more node_modules folders than actual projects? Has your SSD started crying every time you run npm install?
Fear no more! node_module-nuke is here to save the day (and your storage).
This blazingly fast Rust-powered tool will hunt down every single node_modules directory on your system and give you the power to DELETE THEM ALL with the satisfaction of watching your free disk space counter go brrrrr.
node_modules directories (your code is safe!)cargo install node_module-nuke
# Clone the repository
git clone <repository-url>
cd node_module-nuke
# Install locally
cargo install --path .
cargo run
For maintainers who want to publish this tool:
Prepare your package:
# Make sure everything builds
cargo build --release
cargo test
Update Cargo.toml metadata:
[package]
name = "node_module-nuke"
version = "0.1.0"
edition = "2021"
description = "Efficiently delete node_modules directories with nuclear precision"
license = "MIT"
repository = "https://github.com/yourusername/node_module-nuke"
homepage = "https://github.com/yourusername/node_module-nuke"
documentation = "https://docs.rs/node_module-nuke"
keywords = ["cli", "node_modules", "cleanup", "disk-space", "nodejs"]
categories = ["command-line-utilities", "filesystem"]
Login to crates.io:
cargo login
# Enter your API token from https://crates.io/me
Publish:
# Dry run first to check everything
cargo publish --dry-run
# Actually publish
cargo publish
After publishing, users can install with:
cargo install node_module-nuke
node_module-nuke
node_module-nuke ~/Projects
node_module-nuke --dry-run
node_module-nuke --verbose
node_module-nuke --depth 3
node_module-nuke --exclude ./important-project/node_modules,./another-project/node_modules
node_module-nuke --help
Scan complete in 0.42s:
- Folders found: 47
- Total size: 12.34 GB
- Estimated savings: 12.34 GB
Proceed with deletion? (yes/no): yes
Deleting... โโโโโโโโโโโโโโโโโโโโ 47/47 [00:03] Freed: 12.34 GB
Deletion complete in 3.14s:
- Folders deleted: 47
- Space freed: 12.34 GB
Your SSD just sighed with relief.
This tool is nuclear. It will delete node_modules directories. Forever. Gone. Poof. ๐จ
Make sure you can recreate them with npm install or yarn install before proceeding.
(But let's be honest, you probably should have done this ages ago.)
Found a bug? Want to make it even more destructive? PRs welcome!
Just remember: with great power comes great responsibility. Use this tool wisely.
MIT - Because even nuclear weapons should be free and open source.
"I used to have 50GB of node_modules. Now I have 50GB of free space and inner peace." - Happy User
"This tool gave me back my weekend. And my sanity." - Another Happy User
"node_modules directories hate this one simple trick!" - Definitely Not Clickbait