Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/mvertes/nl-stream
- Owner: mvertes
- License: mit
- Created: 2015-12-11T16:16:57.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-11T17:05:43.000Z (about 9 years ago)
- Last Synced: 2024-12-24T20:48:32.733Z (about 1 month ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).