lib/index.js
function getDomain(url) {
	var domain = _.isObject(url) ? url.host : urlib.parse(url).host;
	return domain || url;
}
function getDomain(url) {
	var domain = _.isObject(url) ? url.host : urlib.parse(url).host;
	return domain || url;
}
function getDomain ( url ) { var domain = _ . isObject ( url ) ? url . host : urlib . parse ( url ) . host ; return domain || url ; }
given a url return a domain part
given a url return a domain part