Save your system space from node_modules using NPKill
What is NPKill?
NPKill tool allows you to list any node_modules directories in your system, as well as the space they take up. You can then select which
ones you want to erase to free up space.
Features of NPKill
Clear space: Get rid of old and dusty node modules cluttering up your machine.
Last Workspace Usage: Check when was the last time you modified a file in the workspace (indicated in the last_mod column).
Very fast: NPKILL is written in TypeScript, but searches are performed at a low level, improving performance greatly.
Easy to use: Say goodbye to lengthy commands. Using npkill is as simple as reading a list of your node_modules, and pressing Del to get rid of them. Could it be any easier?
Minified: It barely has any dependencies.
You don’t really need to install it to use it! Simply use the following command
Or if for some reason you really want to install it
npm -i g npkill
# Unix users may need to run the command with sudo. Go carefully
By default, NPKill will scan for node_modules starting at the path where the NPKill command is executed.
# or just npkill if installed globally
Move between the listed folders with ↓ ↑, and use Space to delete the
selected folder. You can also use j and k to move between the results.
To exit, Q or Ctrl + c
In this post, you have learned how to save your system space from node_modules using NPKill. Will catch you up in a new post till then Happy Learning!!! :)