tj serve命令行 Node.js 服务器连接构建
serve 是简单的命令行 Node.js 文件/目录 服务器连接构建,支持 stylus,jade 等等。灵感来源于 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
评论
