The process.report is an object whose methods are used to generate diagnostic reports for the current process. If process.report.reportOnSignal is true, a diagnostic report is generated when the process receives the signal specified by process.report.signal.
Return Value: This property returns a boolean value.
Below examples illustrate the use of the process.report.reportOnSignal property in Node.js:
Command to run:
Note: The above program will compile and run by using the node filename.js command.