Hello!

Tumblr is where tens of millions of creative people around the world share and follow the things they love.

Sign up to find more cool stuff to follow

Drinking the Node.js Kool-aid

I’ve been tinkering with Node.js for almost two years now. Node.js is a server-side javascript environment. Since Javascript is an evented language it is well suited to hosting and better suited to parallelism than some other languages which use a single locking process to execute. While it is possible to produce non-locking programs even in these environments it is much easier on Node.js.

This is the first library I’ve published for Node.js. It takes care of simple problem static file hosting. My package Host-With-Node creates a streaming web server in the user’s current working directory.

Example Usage
$ cd /root/of/your/awesome/webapp
$ host-with-node 80


Direct browser to http://localhost/index.html

Installation

Host-With-Node is distributed with NPM (the Node.js package manager) so installation is painless.

npm install -g host-with-node


Links

Cheers!

Loading more posts...