node_modules
folders and helps you delete them with ease. If you’ve ever felt frustrated by running out of disk space because of these bulky dependencies, this tool is a lifesaver.
Here are some features that make it stand out:
- Lightning-Fast Scanning: Npkill scans your directories and lists all the node_modules folders, along with their sizes. It’s much faster than manually searching for them.
- Interactive Interface: Once the tool lists the folders, I can quickly select which ones to delete. No accidental deletions – I’m always in control.
- Cross-Platform Compatibility: I use both macOS and Linux, and it works seamlessly on both. It also supports Windows, so no matter what system you’re on, you’re covered.
- Customizable Scans: You can specify which directories to scan or exclude, making it perfect for targeting specific areas without messing with others.
How I Use Npkill
Getting started with Npkill was a breeze. Here’s what I did:1. Install Npkill
npm install -g npkill
2. Run the Scan
npkill
3. Clean Up!
Folders found:
✔ /project-1/node_modules 2.3 GB
✔ /project-2/node_modules 1.5 GB
Why Use Npkill?
Npkill offers several benefits that make it an essential tool for developers:- Time-Saving: Eliminates the need to manually locate and delete folders.
- Disk Space Optimization: Recovers valuable disk space occupied by outdated node_modules.
- User-Friendly: Its interactive design ensures that deletions are intentional and straightforward.
node_modules
folders, it saves time, prevents frustration, and helps keep systems running smoothly.
npkill.js.org – Official website of NPKILL