#cli #tools #node #cargo

app polykill

Lightweight command line utility for removing dependencies and build artifacts from unused projects

21 releases (9 stable)

1.2.4 Jul 19, 2023
1.2.3 Jun 26, 2023
0.5.3 May 24, 2023
0.4.1 May 13, 2023
0.1.0 May 3, 2023

#103 in Development tools

Download history 30/week @ 2023-05-26 81/week @ 2023-06-02 61/week @ 2023-06-09 60/week @ 2023-06-16 66/week @ 2023-06-23 53/week @ 2023-06-30 3/week @ 2023-07-07 24/week @ 2023-07-14 39/week @ 2023-07-21 4/week @ 2023-07-28 42/week @ 2023-08-04 1/week @ 2023-08-11 21/week @ 2023-08-18 21/week @ 2023-08-25 1/week @ 2023-09-01 63/week @ 2023-09-08

106 downloads per month

MIT license

25KB
572 lines

Polykill

Lightweight command line utility for removing dependencies and build artifacts from unused local projects. Inspired by npkill.

Supported project types:

  • Cargo
  • Node
  • Mix
  • .NET Core
  • Gradle
  • Composer
  • Misc (see "Addional Information")

Installation

cargo install polykill

Usage

polykill [OPTIONS] [DIR]

Polykill will recursively search for projects in the provided directory and output a list of all projects found. If no directory is provided, the current directory will be searched.

Move between listed projects using ↓,↑,←,→ and press enter to delete artifacts for the selected project.

Press q or esc to exit.

Warning for Node projects: Some Node applications need their node_modules directory to work and deleting it may break them.

Options

Argument Description
-v, --verbose Verbose output
-n, --no-git Include projects not tracked by git
-s, --skip-empty Hide projects with zero possible disk savings
-u, --unsorted Don't sort projects
-h, --help Print help
-V, --version Print version

*--no-git option will slow down project search

Additional Information

How projects are identified and which directories are used for dependencies and build artifacts:

Type Identifier(s) Directories
Node package.json node_modules
Cargo cargo.toml target
Mix mix.exs _build, deps
.NET Core .csproj bin, obj
Gradle build.gradle(.kts) build
Composer composer.json vendor
Misc bin, build, dist bin, build, dist

Dependencies

~1–14MB
~113K SLoC