Use getUrlObject and format as exports. Allow extra parameters to be used when parsing URL.