# xdyhttp-server **Repository Path**: xingdongyu/xdyhttp-server ## Basic Information - **Project Name**: xdyhttp-server - **Description**: 静态服务器 - **Primary Language**: NodeJS - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 1 - **Created**: 2018-08-31 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## xdyhttp-server: @1.0.0 xdyhttp-server --- ### install > npm install xdyhttp-server -g ### usage > 进入本地某个目录下 执行xdyhttp-server 本地起一个静态服务器 ### options > url localhost: default 8091 --- ## xdyhttp-server: @1.0.7 xdyhttp-server ### 添加功能 > 1.添加服务端得gzip压缩功能 减少文件在传输过程中消耗得流量和时间 服务器压缩功能 Accept-Encoding 压缩文件 > 2.添加缓存304机制 > 3.添加获取ip+端口 > 4.随机端口号 > 5.打开默认浏览器