lino

split stream into line sized chunks

lino - split stream into line sized chunks

The lino Node.js module splits streams into line sized chunks.

var lino = require('lino'), lines
 
lines = lino()
lines.on('readable', function () {
  console.log('%s', lines.read())
})
lines.write('My philosophy, ')
lines.write('like color television, ')
lines.write('is all there in black and white.\n')

Lino exports a single function that returns a Transform stream. This duplex stream splits its inputs at line breaks to output line sized chunks.

MIT License