TIL about process.exitCode = 1;

Useful if you want to mark a process as failed without immediately exiting it

Comments