Join urls and normalize as in path.join.
npm install url-joinJoin all arguments together and normalize the resulting URL.
``bash`
npm install url-join
If you want to use it directly in a browser use a CDN like Skypack.
`javascript
import urlJoin from 'url-join';
const fullUrl = urlJoin('http://www.google.com', 'a', '/b/cd', '?foo=123');
console.log(fullUrl);
`
Prints:
```
'http://www.google.com/a/b/cd?foo=123'
MIT