Parameters: This method accepts two parameters as mentioned above and described below:
- filename: This parameter holds the file name where the report will be written.
Return Value: This method returns the filename of the generated report.
Below examples illustrate the use of the process.report.writeReport property in Node.js:
Command to run:
Note: The above program will compile and run by using the node filename.js command.