Evaluate a URL to get it's domain and port
In NodeJS if you need to take a URL and extract the domain, protocol and port out, you may have noticed it is harder than it sounds. We came across this problem when creating itsback.at, and this is what we came up with. It currently only checks for http(s) and not other protocols like ftp links. It should return you the domain and port number, defaulting to port
[Read More]