A simple http server for node.js that has sinatra like qualities. Ideal for generating web services via node.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
hello_world.js Allow simple sync responses for html (strings) and json (objects). Mar 26, 2010
package.json Tag release 0.0.3 for node v0.1.90. Apr 10, 2010



Node-router is a small simple node.js http server that makes building simple web-services super simple.

Node libraries

There are two ways to include this library in your node project. You can either copy the node-router.js file in the same directory as your script and require it with a relative path:

var NodeRouter = require('./node-router');

Or you can copy node-router.js to somewhere in your require.paths array. Then you can use a global require like:

var NodeRouter = require('node-router');

See the node docs for more details.