0.0.9 • Published 11 years ago

journeyman v0.0.9

Weekly downloads
3
License
-
Repository
github
Last release
11 years ago

Journeyman

Build Status

thin wrapper for middleware with node's http server

Example

var Journeyman = require('../index.js');

var port = 3000,
    server = new Journeyman(port);

server.use(function(req, res) {
  res.writeHead(200);
  res.end(res.params);
});

server.use(function(req, res, next) { next(); });

server.use(function(req, res, next) {
  res.params = 'WHERE AM I??';
  next();
});

server.listen();

going to http://localhost:3000 will render out a success with the contents "WHERE AM I??"

0.0.9

11 years ago

0.0.8

11 years ago

0.0.7

11 years ago

0.0.6

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago