stack_salehi:
Stack is a minimal http module system for node.js.
Install:
If you use npm, then install stack_salehi via npm. Also, remember to put it as a dependency in your own project's package.json file.
npm install stack_salehi:
If you don't use npm (Like you're on a phone), then simply copy the single file stack.js somewhere you can get to it.
Example:
http.createServer(require('stack_salehi')( require('loggerMiddleware')(), require('staticMiddleware')(root, mount), //... )).listen(8080);
Explanation:
As you can see, it takes a list of handler functions and will chain them up for you.