const obj = UrlParts.parse('https://u:p@ex.com:8080/a/b?x=1&y=2#top');
const url = UrlParts.build({ protocol:'https', host:'example.com', path:'/api', query:{ q:'js', page:3 }, hash:'section' });