chalk
简单介绍:console输出颜色标记库
github地址:https://github.com/chalk/chalk
envinfo
简单介绍:输出当前机器各项环境数据
npm地址:https://www.npmjs.com/package/envinfo
dns
简单介绍:node内置dns模块, 通过dns.lookup是否能返回ip,判断网络当前连通性。
api简单介绍:https://www.runoob.com/nodejs/nodejs-dns-module.html
child_process
简单介绍:node内置模块,模块提供了衍生子进程的能力,用于执行shell命令或执行node文件。
api简单介绍:http://nodejs.cn/api/child_process.html
fs-extra
简单介绍:fs-extra是fs的一个扩展,提供了非常多的便利API,并且继承了fs所有方法和为fs方法添加了promise的支持,
api简单介绍:https://juejin.im/post/5b52fd21e51d4519234468f1
commander
简单介绍:命令行接口node解决方案
api简单介绍:https://www.npmjs.com/package/commander#options
cross-spawn
简单介绍:使用该模块,可以在调用 spawn 函数时,自动根据当前的运行平台,来决定是否生成一个 shell 来执行所给的命令。
api简单介绍:https://www.npmjs.com/package/cross-spawn
semver
简单介绍:用于判断当前string是否为npm支持的正常版本号
api简单介绍: https://www.npmjs.cn/misc/semver/