微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

程序名称:tj serve

授权协议: MIT

操作系统: 跨平台

开发语言: JavaScript

tj serve 介绍

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 @R_639_4045@ion

tj serve 官网

https://github.com/tj/serve

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐