http-server is a simple, zero-configuration command-line http server. It is powerful enough for production usage, but it’s simple and hackable enough to be used for testing, local development, and learning.
1.安装
npm install http-server-g
2.使用
http-server[path][options]
[path] defaults to ./public if the folder exists, and ./ otherwise.