VibeHunt
Back to browse

wipe-modules

Remove `node_modules` of inactive projects.

Source

The tool scans a directory tree and deletes the `node_modules` folder of projects that have not been modified within a user‑specified number of days. It accepts a path and a day threshold, and optionally runs in dry‑run mode to list the directories that would be removed. The command can be invoked directly from the shell and is suitable for inclusion in scheduled jobs such as cron.

It targets JavaScript developers who accumulate large `node_modules` directories for inactive repositories, freeing disk space while preserving the ability to reinstall dependencies later from `package.json`. The utility is distributed as a global npm package, a bpkg package, or a standalone shell script, and runs on Unix‑like systems where cron is available.

The program is stable, provides a simple CLI, and includes a sample cron file for automated daily execution. It is released under the MIT license.

Reviews

Sign in to leave a review.

Loading reviews…

Similar apps