jquery-url-parser

utility to parse urls and provide easy access to their attributes (such as the protocol, host, port etc)

jquery-url-parserpurl

https://github.com/allmarkedup/purl