code: function Detector(
      ignoredRoutes,
      matchedRoutes,
      checkFileExtensions,
      trustedProxy,
      robotsJson,
      extensionsJson
  ) {
  
      this.ignoredRoutes = ( ignoredRoutes ) ? ignoredRoutes : [];
      this.matchedRoutes = ( matchedRoutes ) ? matchedRoutes : [];
  
      this.checkFileExtensions = ( checkFileExtensions ) ? true : false;
      this.trustedProxy = ( trustedProxy ) ? true : false;
  
      robotsJson = ( robotsJson ) ? robotsJson : __dirname + '/../resources/robots.json';
      this.robots = this.parseJson( robotsJson );
  
      extensionsJson = ( extensionsJson ) ? extensionsJson : __dirname + '/../resources/extensions.json';
      this.extensions = this.parseJson( extensionsJson );
  
  }
docs: Constructor
  
  @param array   ignoredRoutes       Array of blacklised route regexes that will be ignored during detection, you can use relative directory paths
  @param array   matchedRoutes       Array of whitelisted route regexes, any route not matching will be ignored during detection
  @param boolean checkFileExtensions Boolean to check if the url is going to a static file resource that should not be intercepted. This is prevent SnapSearch from attempting to scrape files which are not HTML. This is false by default as it depends on your routing structure.
  @param boolean trustedProxy        Indicated if header from proxy is to be trusted
  @param string  robotsJson          Absolute path to a robots.json file
  @param string  extensionsJson      Absolute path to a extensions.json file