index.js
function tryParse(url) {
  if (!url) {
    return null;
  }

  var conf = {};
  var parsed = urlParse(url);
  conf.protocol = parsed.protocol;
  conf.host = parsed.hostname;
  conf.port = parseInt(parsed.port,10);
  return conf;
}
function tryParse(url) {
  if (!url) {
    return null;
  }

  var conf = {};
  var parsed = urlParse(url);
  conf.protocol = parsed.protocol;
  conf.host = parsed.hostname;
  conf.port = parseInt(parsed.port,10);
  return conf;
}
function tryParse ( url ) { if ( ! url ) { return null ; } var conf = { } ; var parsed = urlParse ( url ) ; conf . protocol = parsed . protocol ; conf . host = parsed . hostname ; conf . port = parseInt ( parsed . port , 10 ) ; return conf ; }
Parses the de facto `http_proxy` environment.
Parses the de facto http_proxy environment .