Closed epoberezkin closed 7 years ago
Ok, so it is caused by calling process.exit(0)
in the app that produces tap output.
With and without process.exit(0)
this works correctly:
node app > tap.txt
cat tap.txt | tap-parser --lines
Piping only works without process.exit():
node app | tap-parser --lines
I don't think it's the issue of this package, but maybe somebody knows why?
Seems related: https://github.com/nodejs/node/issues/9633
ok, so process.exit kills output and writing to file works because it is faster.
Running
consistently stops consuming lines somewhere mid-way after couple of thousands lines.
This always works ok:
@isaacs any idea how to investigate would be helpful.