1.0.7 • Published 5 years ago

static-node-server v1.0.7

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

一个基于node的静态服务器工具

安装

npm i static-node-server

启动服务

static-server

指定文件目录

static-server -f <fileDir>

指定监听端口,默认为8080

static-server -p <port>

自定义响应头

static-server -H <headerConfig>

格式示例:static-server -H '{\"Cache-Control\": \"max-age=2592000,public\"}'

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago