lib/src/main.js
function createSync(data, opts) {
  const { html, reportOptions } = prepare(data, opts);
  const { autoOpen, htmlFile } = reportOptions;
  fs.outputFileSync(htmlFile, html);
  if (autoOpen) opener(htmlFile);
}
function createSync(data, opts) {
  const { html, reportOptions } = prepare(data, opts);
  const { autoOpen, htmlFile } = reportOptions;
  fs.outputFileSync(htmlFile, html);
  if (autoOpen) opener(htmlFile);
}
function createSync ( data , opts ) { const { html , reportOptions } = prepare ( data , opts ) ; const { autoOpen , htmlFile } = reportOptions ; fs . outputFileSync ( htmlFile , html ) ; if ( autoOpen ) opener ( htmlFile ) ; }
Create the report synchronously

@param {string} data JSON test data
@param {Object} opts Report options
Create the report synchronously