What is the best way to forcibly keep a Node.js process running, i.e., keep its event loop from running empty and hence keeping the process from terminating?
I'll throw another hack into the mix. Here's how to do it with Promise:
Promise
new Promise(_ => null);
Throw that at the bottom of your .js file and it should run forever.
.js