tuqqu/killposer

This package is abandoned and no longer maintained. No replacement package was suggested.

Find and delete composer-created /vendor/ directories that you do not need any more.

v0.3 2019-09-26 17:04 UTC

This package is auto-updated.

Last update: 2022-07-27 22:36:49 UTC


README

Easy way to find and delete composer-created /vendor/ directories that you do not need any more.

This is a cli-tool to find Composer-created vendor directories on your system, list their path and size, and it allows you delete ones that you don't need to free up storage space.

The project is inspired by npkill.

Installation

Install Killposer globally with Composer:

$ composer global require tuqqu/killposer

You have to make sure that global Composer binary directory is in your PATH. See Composer docs. On a Unix system run the following command:

$ export PATH="$PATH:$HOME/.composer/vendor/bin"

Usage

Having installed it globally you may now use killposer binary:

$ killposer 

Use W and S keys to move up/down, K to delete the selected vendor and Q to quit.

Command options

  • --path, -p to specify the directory to search, default value is current directory, ./
  • --byte-format, -f available formats are: kib, mib (the default one), gib
  • --byte-threshold, -t if for some reason you have no interest in the exact size of your vendors, you may set a threshold after which file size won't be calculated

Example

Search vendors in PhpProjects

$ killposer -p '~/PhpProjects/'