npkill 一个方便的npm 包清理工具

npm 包很好用,但是占用空间太多了,npkill 提供了一个方便的工具,可以帮助我们查找安装的npm 包,以及进行清理

安装

npm install -g npkill

简单使用

  • 命令
npkill -d  ~/mylearning/
  • 效果

 

 

帮助命令

 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.
   -E, --exclude Exclude directories from search (directory list must
                           be inside double quotes "", each directory separated
                           by "," ) Example: "ignore1, ignore2"
   -f, --full Start searching from the home of the user (example:
                           "/home/user" in linux).

参考资料

https://github.com/voidcosmos/npkill

posted on 2019-09-15 22:23  荣锋亮  阅读(2001)  评论(0编辑  收藏  举报

导航