Node.js process.report.directory Property Last Updated : 25 May, 2021 Comments Improve Suggest changes Like Article Like Report The process.report.directory is an inbuilt application programming interface of class Process within process module which is used to get or set the directory where the report is written. Syntax: const process.report.directoryParameters: This api takes no argument as a parameter. Return Value: This api returns the directory where the report is written. Example 1: index.js // Node.js program to demonstrate the // Process.report.directory Property // Importing process module const process = require('process'); // Assigning the directory process.report.directory = "GFG" // Display the result console.log(process.report.directory) Run the index.js file using the following command: node index.jsOutput: GFGExample 2: Filename: index.js JavaScript // Node.js program to demonstrate the // Process.report.directory Property // Importing process module const process = require('process'); const directory = process.report.directory; // Display the result if (directory.length == 0) console.log("No directory is assigned") else console.log(directory) Run the index.js file using the following command: node index.jsOutput: No file name is assignedReference: https://nodejs.org/dist/latest-v16.x/docs/api/process.html#process_process_report_directory Comment More infoAdvertise with us Next Article Node.js process.report.directory Property R rohitprasad3 Follow Improve Article Tags : Web Technologies Node.js Node.js-process-module Similar Reads Node.js process.report Property The process.report is an inbuilt application programming interface of class Process within the process module which is used to provide the methods with which diagnostic reports for the current process are generated. Syntax: const process.report Return Value: This property returns the methods with wh 1 min read Node.js process.report.filename Property The process.report.filename is an inbuilt application programming interface of class Process within process module which is used to get or set the file name where the report is written. Syntax: const process.report.filename Parameters: This api takes no argument as a parameter. Return Value: This ap 1 min read Node.js process.stderr.fd Property The process.stderr.fd is an inbuilt application programming interface of class Process within process module which is used to returns the value of underlying file descriptor of process.stderr. Syntax: const process.stderr.fdParameters: This api takes no argument as a parameter. Return Value: This ap 1 min read Node.js process.execPath Property The process.execPath property is an inbuilt application programming interface of the process module which is used to get the absolute pathname of the node.js executable which started the node.js process.Syntax:Â Â process.execPath Return Value: This property returns a string signifies the absolute pa 1 min read Node.js process.execArgv Property The process.execArgv property is an inbuilt application programming interface of the process module which is used to get the node.js specific command-line options passed to the node.js process during launch. Syntax: process.execArgv Return Value: This property returns an array string containing the 2 min read Like