Skip to content

Node

工具库

  • cheerio 用类 jQuery 语法处理 HTML
  • node-semver node 版本验证库
  • live-server 一个简单的 http server 带有 reload 功能
  • node-portfinder 一个端口嗅探工具
  • update-notifiernode 依赖升级提醒工具
  • fastscan node 敏感词库
  • hygen 快速方便的创建代码 可以命令行创建预设的 template
  • plop 同上,代码生成工具
  • ink 是一个 React 的命令行渲染器,命令行界面可以像写页面那么写了
  • dotenv 通过.env 设置环境部变量 vue-cli 也依赖它
  • patch-package 优雅的修改 node_modules 中的依赖库
  • Playwright 同 Puppeteer 团队出品,但区别是它支持 Chrome、Safari、Firefox、Edge
  • tree-cli node 根据目录结构生成 tree
  • tree-node-cli node 根据目录结构生成 tree
  • open node 打开浏览器

命令行

  • signale 一个 Node 的日志格式库,自带 16 个级别,可以定制颜色和 Emoji,可扩展的日志记录器
  • consola 优雅的命令行 console logger vuepress 也使用了它
  • chalk 命令行着色美化库
  • progress-estimator 命令行 progress bar 进度条模拟库
  • ora Elegant terminal spinner 命令行 loading
  • listr Terminal task 命令行任务列表
  • yargs 命令行参数解析
  • y18n yargs 基于 i18n 的一个包
  • commander.js 自动的解析命令和参数,合并多选项,处理短参,等等,功能强大,上手简单
  • Inquirer.js A collection of common interactive command line user interfaces. 命令行询问库
  • enquirer 命令行 prompt 询问库,写 cli 的时候很有用
  • Qoa 同上
  • cli-progress Terminal Progress Bar
  • cli-table tables for the CLI
  • node-notifier 在 NodeJS 环境中,可以很方便的唤起 notifier 通知

文件处理

  • rimraf 删除文件
  • globby 用于模式匹配目录文件
  • glob 文件查找
  • tiny-glob 文件查找
  • chokidar node 监听文件变化的库
  • fs-extra fs-extra 模块是系统 fs 模块的扩展,提供了更多便利的 API,并继承了 fs 模块的 API
  • execa 比 child_process 好用,返回 Promise
  • npm-run-all 一个 CLI 工具可以并行或者串行执行 script 指令
  • memfs memory-fs 的替代品,将文件放在内存中优化读写,webpack 依赖

调试

Released under the MIT License.