1.0.5 • Published 3 years ago
file-http-server v1.0.5
file-http-server
a simple file http server, created by local file system, need to install nodejs version is more than v10
Usage
- npx
cd /home/xxx/test
npx file-http-server --port=3000
- npm 全局安装后使用file-http-server命令
cd /home/xxx/test
npm install file-http-server -g
file-http-server --port=3000
Options
- port:启动服务的端口,默认8000
- proxy: 指定代理配置,如果配置后,则服务所有请求将转发到代理服务器上,使用示例:
file-http-server --port=3000 --proxy=http://192.168.56.100