Open davideicardi opened 8 years ago
You need to explicitly pause stdin after using co-prompt
with the following code, at the end of your execution flow:
// Gotta pause stdin after we're done so it doesn't look like the process is stuck
process.stdin.pause();
should this be added to the documentation? The need to add a process.stdin.pause();
?
I suspect that the problem is that
process.stdin
is still referenced. See this SO answer.I have tried another approach using
readline
:What do you think?