visionmedia/express — pull request #1438 by silvinci (2012-12-03 03:06:06+00:00)
Title: Plugins

Sometimes middleware just isn't enough. Sometimes you *need* to extend express.
This PR implements a clean way to do so.

```javascript
function nyancat(exclamation) {
this.nyan = function() {
console.log(exclamation);
};
}

app.plugin(nyancat, "Nyan!");
```