Just run node generate_report.js to launch new Chrome instance and generate all reports listed in report_list.js. You can also run with chromePort=xx option for running in existing Chrome instance.
return an array of object where key symbolizes page you are running report for and value is page url. Key will be used for as report file name.
- headless - only works when using new Chrome instace, default: true
- output - output format (json/csv/html), default: html
- reportListPath - location of JS file returning array of page objects, relative to generate_report.js file, default: ./report_list.js
- outputPath - output path, default: ./reports/%DD%.%M% , where symbols surrounded with % are replaced by according value
To use on pages requiring login you can use chromePort argument. Run chrome-debug in CLI, login in required page manually, open a new tab and close that contaning page you want to audit, pass port provided by running chrome-debug in terminal as argument.