purl

A JS utility for for parsing URLs and extracting information out of them.

urlparser

https://github.com/allmarkedup/purl