title: How to export html report from newman
body: <p>I am using newman via node. Here is the code I'm running:</p>
  
  <pre><code>//File is named newmanRunner.js
  const fs = require('fs'),
  newman = require('newman');
  
  let rawdata = fs.readFileSync('collections/optionsFile.json');
  let optionsJson = JSON.parse(rawdata);
  console.log(optionsJson);
  
  newman.run(optionsJson, function(err){
      if(err){console.log("Error in collection run: " , err)};
      console.log('Collection run complete');
  });
  </code></pre>
  
  <p>Here is the json file with the runtime options:</p>
  
  <pre><code>{
      "collection": "collections/my_collection.json",
      "data": "data/datafiles/someData.json",
      "environment": "data/environments/testEnvironment.json",
      "globals": "data/global/globalVars.json",
      "iterationCount": 1,
      "reporters": "html",
      "reporter-html-export": "reports/report.html"
  }
  </code></pre>
  
  <p>I run the collection by the following command:</p>
  
  <pre><code>node newmanRunner.js
  </code></pre>
  
  <p>The problem I run into is that the html report is generated in a directory titled 'newman' which is in the same directory from which I'm running. I'd like the file to saved to the 'reports' directory. Can anyone point out what I'm doing wrong here? I'm having a hard time finding any documentation on how to include the runtime options in a json file that can be loaded at runtime.</p>
  
  <pre><code>node: 6.11.2
  newman: 3.8.3
  os: macOS 10.13.3
  </code></pre>