What is the command that is used to exit? (i.e terminate the Node.js process)
Node.js – How to exit in Node.js
node.js
Related Topic
- Javascript – How to pass command line arguments to a Node.js program
- Node.js + Nginx – What now
- Javascript – How to decide when to use Node.js
- Javascript – the purpose of Node.js module.exports and how do you use it
- Node.js – How to get GET (query string) variables in Express.js on Node.js
- Node.js – Find the version of an installed npm package
- Node.js – How to uninstall npm modules in Node.js
- Node.js – the –save option for npm install
Best Answer
Call the global
process
object'sexit
method:From the docs: