on-new-line
Hijacks NodeJS Stream and emits events when newline(s) written to the output.
Install
$ npm install on-new-line --save
Usage
stream; // Any type of NodeJS stream, such as: filestream, process.stdout etc. // emitted on every newline detectedstream; // emitted before data written to the output. stream; // emitted after data written to the output. stream;
Contributing
Pull requests and stars are highly welcome.
For bugs and feature requests, please create an issue.