Npkill

npkill

Easily find and remove old and heavy node_modules folders

npkill is a cheeky CLI tool that helps us to clean up node_modules with a uber cool CLI experience.

Get it: npx npkill

Sample usage:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$ npkill --help

   -c, --bg-color          Change row highlight color. Available colors are: blue, cyan, magenta, red, white and yellow. Default
                           is blue.

   -d, --directory         Set directory from which to start searching. By default, starting-point is .

   -D, --delete-all        CURRENTLY DISABLED. Automatically delete all node_modules folders that are found.

   -e, --show-errors       Show error messages if any.

   -f, --full              Start searching from the home of the user (example: "/home/user" in linux).

   -gb                     Show folder size in Gigabytes

   -h, --help, ?           Show this help page, with all options.

   -nu, --no-check-update  Dont check for updates on startup.

   -v, --version           Show version.

GIF FTW!

npkill

Suggest a module

Comments