1.0.6 • Published 7 years ago
run-server v1.0.6
run-server
Run a simple static file server at anywhere.
install
npm i run-server -guse
运行后会自动将当前目录作为静态资源根目录,默认index.html为首页:
run-server
run-server -port 9900
run-server -open myPage.html完整参数:
-port 9900:自定义端口,默认8899;-https:启用HTTPS,默认否(暂不支持,待完善);-debug:开启debug,默认true;-open:自动用浏览器打开的页面,默认/,即首页,如果传false表示不自动打开浏览器;-index home.html:自定义默认首页,默认index.html;