wipe-modules
Remove `node_modules` of inactive projects.
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
Loading reviews…
Similar apps
Terminals & CLI
trash-cli
Move files and directories to the trash.
Terminals & CLI
kill-tabs
Kill all Chrome tabs.
File Management & Transfer
del-cli
Delete files and folders.
Terminals & CLI
pkg-dir-cli
Find the root directory of a npm package.
Terminals & CLI
Wat
Instant, central, community-built docs.
File Management & Transfer
pm
The easy way to switch to your projects on the shell.