← Back to the listNovember 10, 20211 min read — npm

npkill

I recently cleaned up my work laptop and came once again across this very useful package, so I thought I share it here, also as a continuous reminder to myself that it exists 😅

The tool itself is simple. Just run npx npkill and it will detect all node_module folders, giving you the option to select which ones to delete and which ones you might want to keep. Usually cleans up a fair few GB for me every bluemoon that I remember and run it 😄🎉