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.
Return Value: This property returns a boolean value.
Below examples illustrate the use of the process.report.compact property in Node.js:
Command to run:
Note: The above program will compile and run by using the node filename.js command.