zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    小孩抓周
    psychology
    绝恋诗词
    一万小时定律
    王国维的人生三重境界
    2017年日历
    018 cisco 3560 MAC地址绑定
    017 SSH
    016 ppp authentication
    unity Tilemap
  • 原文地址:https://www.cnblogs.com/rongfengliang/p/11524750.html
Copyright © 2011-2022 走看看