Open In App
Related Articles

Node.js process.report.signal Property

Improve Article
Improve
Save Article
Save
Like Article
Like

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’.

Syntax:

process.report.signal

Return Value: This property returns the generated diagnostic reports for the current process.

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

Example:

index.js




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


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_signal

Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Last Updated : 08 Mar, 2021
Like Article
Save Article
Previous
Next
Similar Reads
Complete Tutorials