docs: function urlToUri(url) {
    let parts;
  
    if (!isUrl(url)) {
      throw new Error('Invalid url ' + url);
    }
    parts = urlParse.parse(url);
  
    return `${parts.hostname}${decodeURIComponent(parts.path)}`;
  }