Detect NodeJS Repl Exit
I want to do some cleanup actions before NodeJS exits. I've tried to do all of the exit event handlers but they don't seem to work.
Answered by Coder100 (10843) [earned 5 cycles]
Why not configure you run button instead smh
# .replit run="sh main.sh"
node . # ok now the process has exited so you can do something like: echo program stopped have a great day bye