`yield` vs `yield*` in Koa.js

Although Koa.js does not advocate the use of yield*, it is good there is an article explaining the difference among the two.…

Simple proxy with express and request

The code is so simple it hurts :-) var request = require('request'); app.use('/api', function(req, res) { var url = apiUrl + req.url; req.pipe(request(url)).pipe(res); }); Source…

Line-by-line processing in node

Without 3rd party extensions! What you need are the fs, readline and stream module. var fs = require('fs'), readline = require('readline'), stream = require('stream'); var instream = fs.createReadStream('your/file'), outstream = new stream, rl = readline.createInterface(instream, outstream); rl.on('line', function(line) { // process line here }); rl.on('close', function(…