Node.js process.kill() Method
The process.kill( pid[,signal] ) is an inbuilt method of node.js which sends a signal to the process, pid (which is the process id) and signal is in the string format that is the signal to send....
read more
How to exit process in Node.js ?
In this article, we will see how to exit in NodeJS application. There are different types of methods to exit in Nodejs application, here we have discussed the following four methods....
read more
Node.js Process Signal Events
Signals are a POSIX (The Portable Operating System Interface) intercommunication system. These events will be emitted when Node receives signal events. In order to notify that an event has occurred, a notification is sent....
read more
Node.js Process unhandledPromiseRejection Event
The process is the global object in Node.js that keeps track of and contains all the information of the particular node.js process that is executing at a particular time on the machine....
read more
Node.js process.exitCode Property
There are two ways that are generally used to terminate a Node.js program which is using process.exit() or process.exitCode variable. In this post, we have discussed the process. exit code variable. It is an integer that represents the code passed to the process.exit() function or when the process exits on its own. It allows the Node.js program to exit naturally and avoids the Node program to do additional work around event loop scheduling, and it is much safer than passing exit code to process.exit()....
read more
Node.js process Object
A process object is a global object, so it can be accessed from anywhere. As it is a predefined library, so we don’t have to download it to our system globally....
read more
Node.js process.stderr Property
The process.stderr is an inbuilt application programming interface of class Process within process module which is used to returns a stream connected to stderr....
read more
Node.js process.report.writeReport() Method
The process.report.writeReport() method writes a diagnostic report to a file. If filename is not provided, the default filename includes the date, time, PID, and a sequence number. The report’s JavaScript stack trace is taken from err, if present....
read more
Node.js process.stderr.fd Property
The process.stderr.fd is an inbuilt application programming interface of class Process within process module which is used to returns the value of underlying file descriptor of process.stderr....
read more
Node.js process.report.signal Property
The process.report is an object whose methods are used to generate diagnostic reports for the current process. The signal used to trigger the creation of a diagnostic report. Defaults to ‘SIGUSR2’....
read more
Node.js process.report.compact Property
The process.report is an object whose methods are used to generate diagnostic reports for the current process. The process.report.compact write reports in a compact format, single-line JSON, more easily consumable by log processing systems than the default multi-line format designed for human consumption....
read more
Node.js process.report.reportOnFatalError Property
The process object is a global that provides information about, and control over, the current Node.js process. As a global, it is always available to Node.js applications without using require(). It can also be explicitly accessed using require() as shown below:...
read more