How to exit from Node command line
So you loaded the Node console by typing
node at the command line, played around with it and want to get back to your OS command line. Press Ctrl+C (even on a Mac, especially on a Mac!), or just call the
process.exit() method to exit from the Node console.
There you go!