June 2014
Intermediate to advanced
696 pages
38h 52m
English
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.
Table 9.2 Methods that can be called on the process module to affect process execution
Read now
Unlock full access