yi_s2g
Last Updated: February 25, 2016
·
3.155K
· jcreamer898
982085c143104804c4ced3b61864520f

simpleHTTPServer for Node.js

Ever just want a quick server for a folder of codez. Say you have a folder with...

/libs/mylib.js
/index.html

In python there's a class called simpleHTTPServer, to do such a thing and now there's a node.js version of that as well.

https://github.com/andrewpthorp/simple-http-server

To install it...

npm -g install simple-http-server

To use it...

cd /dir/with/codez
nserver -p {port}

Now just point your browser to localhost:{port} and that's it!

Say Thanks
Respond