nl-stream

1.0.0 • Public • Published

nl-stream

A NodeJS stream returning one event per line.

var Lines = require('nl-stream')
var lines = new Lines()
inputStream.pipe(lines)
lines.on('data', function(line) {
    console.log(line)
})
lines.on('end', function () {
    console.log('line stream finished')
})

License

MIT license.

Readme

Keywords

Package Sidebar

Install

npm i nl-stream

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • mvertes