npkill
npkill is a CLI tool that finds and deletes leftover build directories such as node_modules, .venv and target. Version 1.0 replaces the single default target with profiles that group multiple targets by ecosystem (default node profile: node_modules, .next, .nx, .angular, coverage; built-in profiles for Python, Rust, Unity) and adds multi-select, filters, and a config file.
What it addresses
Disk space keeps filling up with leftover build directories from every ecosystem, such as node_modules.
Shared over time
Each entry reflects what was shared on that date. Details may have changed since then.
npkill
npkill is a CLI tool that finds and deletes leftover build directories such as node_modules, .venv and target. Version 1.0 replaces the single default target with profiles that group multiple targets by ecosystem (default node profile: node_modules, .next, .nx, .angular, coverage; built-in profiles for Python, Rust, Unity) and adds multi-select, filters, and a config file.
Problem: Disk space keeps filling up with leftover build directories from every ecosystem, such as node_modules.
Posted by @zaldih · Original source ↗
Story title · @zaldih · · Source ↗
Show HN: Npkill 1.0 – find and delete node_modules, .venv, target and more
Submitted URL · @zaldih · · Source ↗
https://github.com/voidcosmos/npkill
Source text · @zaldih · · Source ↗
Hi HN, I'm the co-author of npkill.
Source text · @zaldih · · Source ↗
It started in 2019 as a ~200-line script to fix a personal problem: my disk was always full on my potato-puter because of the same directories.
Source text · @zaldih · · Source ↗
So 1.0 replaces the single `target` (node_modules by default) with profiles, which group multiple targets by ecosystem. The default is node (node_modules, .next, .nx, .angular, coverage...), and there are many build-in like Python, Rust or Unity available for use.
Source text · @zaldih · · Source ↗
There are a lots of new changes (multi-select, filters, config file..)