Last Updated: February 25, 2016
·
3.62K
· jcreamer898

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!