frontend/.pnpm-store/v3/files/8a/0565edf4f2515f587c8279e8f99d8bb24394d2204e68fcdebb737c7b2c5da2077f253635d2f8e27587aa5022af774248a4480c03767629ab3b8e3d77be6411

30 lines
452 B
Plaintext

Join all arguments together and normalize the resulting URL.
## Install
```bash
npm install url-join
```
If you want to use it directly in a browser use a CDN like [Skypack](https://www.skypack.dev/view/url-join).
## Usage
```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'
```
## License
MIT