text: import Connector from "./connector";
  import fs from "fs";
  
  export default class ConnectorLACNIC extends Connector {
      constructor(params) {
          super(params)
  
          this.connectorName = "lacnic";
          this.cacheDir += this.connectorName + "/";
          this.dumpUrl = this.params.dumpUrl || "http://ftp.lacnic.net/lacnic/dbase/lacnic.db.gz";
          this.cacheFile = [this.cacheDir, "lacnic.db.gz"].join("/").replace("//", "/");
          this.daysWhoisCache = this.params.defaultCacheDays || 2;
  
          if (!fs.existsSync(this.cacheDir)) {
              fs.mkdirSync(this.cacheDir,  { recursive: true });
          }
      }
  }
  