Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

Node.js Property

  • Last Updated : 08 Mar, 2021

The is an object whose methods are used to generate diagnostic reports for the current process. The 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 property in Node.js:



// Node.js program to demonstrate the 
// Property 
// Include process module 
const process = require('process'); 
// Printing property value 
console.log(`Reports are compact? ${}`);

Command to run:

node index.js


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


My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!