Skip to content
Related Articles
Open in App
Not now

Related Articles

Node.js process.report.reportOnSignal Property

Improve Article
Save Article
  • Last Updated : 08 Mar, 2021
Improve Article
Save Article

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.

Syntax:

process.report.compact

Return Value: This property returns a boolean value.

Below examples illustrate the use of the process.report.reportOnSignal property in Node.js:

Example:

index.js




// Node.js program to demonstrate the 
// process.report.reportOnSignal Property 
     
// Include process module 
import process from 'process'
    
// Printing process.report.reportOnSignal property value 
console.log(`Report on signal: ${process.report.reportOnSignal}`);


Command to run:

node index.js

Output:

Note: The above program will compile and run by using the node filename.js command.

Reference:https://nodejs.org/api/process.html#process_process_report_reportonsignal

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!