# url-join-ts

> Join urls and normalize

Latest version **1.0.5** (published 2019-09-21) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 25/100 (F)** — status: abandoned.

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

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2019-09-21 |
| First published | 2019-09-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 171.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | kvandake |
| Maintainers | kvandake |
| Keywords | typescript, url-join, url join, url |

## Links

- npm: https://www.npmjs.com/package/url-join-ts
- Repository: https://github.com/kvandake/url-join-ts
- Issues: https://github.com/kvandake/url-join-ts/issues
- npm.io page: https://npm.io/package/url-join-ts

## 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

- 1.0.5 (latest) — 2019-09-21
- 1.0.3 — 2019-09-08
- 1.0.2 — 2019-09-06
- 1.0.1 — 2019-09-06

## README

# url-join-ts

Join urls and normalize on Typescript.

## Installation

```bash
npm i url-join-ts --save
```

or

```bash
yarn add url-join-ts
```

## Usage

**urlJoin(url, paths)**

```typescript
import { urlJoin } from 'url-join-ts';

urlJoin('https://example.com', 'path', 'path2');

// https://example.com/path/path2
```

**urlJoinP(url, paths, params)**

```typescript
import { urlJoinP } from 'url-join-ts';

urlJoinP('https://example.com', ['path', 'path2'], {param1: 1, param2: '2'});

// https://example.com/path/path2?param1=1&param2=2
```

## Licence
MIT

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