1.0.4 • Published 8 years ago

middleware-tool v1.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

Regarding Issues

simple middleware to help make use middleware easier

Installation

Use npm.

npm install --save-dev middleware-tool

API AND EXAMPLE

var MiddleWare = require('middleware-tool');
var app = new MiddleWare();
app.use(function(next) {
    console.log(1);
    next();
    console.log(4);

});

app.use(function(next) {
    console.log(2);
    next();
});

app.reboot();
//1 2 4

app.use(function(next) {
    console.log(3);
    next();
});

app.boot();
//1 2 4

app.reboot();
//1 2 3 4
1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago