code: function main (url, configs) {
    const retryOptions = {
      retries: configs.retries
    }
  
    const fetchOptions = {
      headers,
      timeout: configs.timeout,
      agent: proxy(configs.proxy)
    }
  
    return pRetry(() => {
      return fetch(url, fetchOptions).then(res => res.text())
    }, retryOptions)
  }
docs: /* eslint-enable max-len