Js文件服务器

Node.js quick file server (static files over HTTP) - Stack Overflow

A good “ready-to-use tool” option could be http-server:

1
2
npm install http-server -g
sudo ln -sf /home/$USER/c/node/bin/http-server /usr/bin/http-server

To use it:

1
2
cd D:\Folder
http-server

Or, like this:

1
http-server D:\Folder

Check it out: https://github.com/nodeapps/http-server

serve

1
2
npm i -g serve   // install
serve C:/repos // run with one line?? FTW!!