process.exitCode lets Node finish pending output
@hk3narwhal▲ 5 net votes
process.exit(1) can cut off buffered stdout writes; setting process.exitCode = 1 and returning lets output flush first.
5 COMMENTS
Superb
Classic
Polished
Knowledgeable
Goldmine