Create a server that uses middle ware in 10 lines

var express = require('express');
var app = express();
app.listen(8080, console.log('connected'));
app.use(function(req, res, next) {
res.write('first!!\n');
next();
});
app.get('/', function(req, res) {
res.write('cool\n')
res.end('hello');
});
One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.