# url-join

> Join urls and normalize as in path.join.

Latest version **5.0.0** (published 2022-03-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install url-join
pnpm add url-join
yarn add url-join
bun add url-join
```

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 5.0.0 |
| Published | 2022-03-23 |
| First published | 2013-01-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | ^12.20.0 \|\| ^14.13.1 \|\| >=16.0.0 |
| Dependencies | 0 |
| Unpacked size | 4.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 366 |
| Author | José F. Romaniello |
| Maintainers | jonkoops, jfromaniello |
| Keywords | url, join |

## Links

- npm: https://www.npmjs.com/package/url-join
- Repository: https://github.com/jfromaniello/url-join
- Homepage: https://github.com/jfromaniello/url-join#readme
- Issues: https://github.com/jfromaniello/url-join/issues
- npm.io page: https://npm.io/package/url-join

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 5.0.0 (latest) — 2022-03-23
- 4.0.1 — 2019-07-05
- 4.0.0 — 2018-02-02
- 3.0.0 — 2018-01-17
- 2.0.5 — 2018-01-10
- 2.0.4 — 2018-01-10
- 2.0.3 — 2018-01-09
- 2.0.2 — 2017-05-18
- 2.0.1 — 2017-04-12
- 2.0.0 — 2017-04-11
- 1.1.0 — 2016-04-05
- 1.0.0 — 2016-03-23
- 0.0.1 — 2013-01-29

## README

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

---
_Source: https://npm.io/package/url-join · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
