docs: function (options) {
      if (!options.path) {
          throw new Error('A path must be supplied to write to')
      }
  
      this.path = options.path
      this.useColors = options.useColors || false
  
      mkdirp.sync(path.dirname(this.path))
  
      this.fd = fs.openSync(this.path, 'w', options.mode || 0644)
  }