firetruck

Not a web framework

npm install firetruck
2 downloads in the last week
4 downloads in the last month

firetruck

A simple http server with simple routing courtesy of mapleTree

var firetruck = require('firetruck');
var app = firetruck();

app(route, handler)

app('/index', function(req, res) {
  res.writeHead(200);
  res.write('hello');
  res.end();
});

attach(server)

Attach the firetruck application to the specified server instance

detach(server)

Detach from the specified server.

npm loves you