tj serve命令行 Node.js 服务器连接构建

联合创作 · 2023-09-23 16:51

serve 是简单的命令行 Node.js 文件/目录 服务器连接构建,支持 stylusjade 等等。灵感来源于 http-server

使用:

Usage: serve [options] [dir]

Options:

  -v, --version        output the version number
  -F, --format <fmt>   specify the log format string
  -p, --port <port>    specify the port [3000]
  -f, --favicon <path> serve the given favicon
  -H, --hidden         enable hidden file serving
  -C, --cors           allows cross origin access serving
  -S, --no-stylus      disable stylus rendering
  -J, --no-jade        disable jade rendering
      --no-less        disable less css rendering
  -I, --no-icons       disable icons
  -L, --no-logs        disable request logging
  -D, --no-dirs        disable directory serving
      --compress       gzip or deflate the response
      --exec <cmd>     execute command on each request
  -h, --help           output usage information

浏览 2
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报