node-async-iterators-kit
Currently, the package provides a set of async iterators for handling readline, streams, child process stdout and timeouts:
- ChildProcessStdioAsyncIterator
- ReadlineAsyncIterator
- StreamReadlineAsyncIterator
- TimeoutAsyncIterator
See example:
const node = cp; const iterator = node 'stdout'; for { lines; // [4] break; // sends SIGTERM to the process if it has not exited yet }