lib/remove-url-path.js
function removeUrlPath (uri) {
  var parsed = url.parse(uri);
  if (parsed.host) {
    delete parsed.pathname;
  }
  return url.format(parsed);
}
function removeUrlPath (uri) {
  var parsed = url.parse(uri);
  if (parsed.host) {
    delete parsed.pathname;
  }
  return url.format(parsed);
}
function removeUrlPath ( uri ) { var parsed = url . parse ( uri ) ; if ( parsed . host ) { delete parsed . pathname ; } return url . format ( parsed ) ; }
remove path from url
@param  {string} uri  full url
@return {string} uriWithoutPath
remove path from url