The process
module gives you some control over the execution of processes. Specifically, it enables you to stop the current process, kill another process, or schedule work to run on the event queue. For example, to exit the current Node.js process, you would use:
process.exit(0)
Table 9.2 lists the process control methods that are available in the process
module.