Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mvertes/nl-stream

nodejs line stream
https://github.com/mvertes/nl-stream

Last synced: 2 days ago
JSON representation

nodejs line stream

Awesome Lists containing this project

README

        

# nl-stream

A NodeJS stream returning one event per line.

```javascript
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](./LICENSE).