Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
An embeddable middleware runner
JavaScript Makefile

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
.gitignore
README.md
index.js
package.json

README.md

middler

A trivial middleware runner

Usage

var middler = require('middler')
  , http = require('http')
  , buffet = require('buffet')('./public')

var server = http.createServer();
middler(server, [
  buffet,
  function(req, res, next) {
    // ... do some stuff
    next();
  },
  buffet.notFound
]);

License

MIT

Something went wrong with that request. Please try again.