# @zowanet/composite-url

> ### Install

Latest version **1.0.1** (published 2023-06-27) · Unlicense license · 0 weekly downloads

## Install

```sh
npm install @zowanet/composite-url
pnpm add @zowanet/composite-url
yarn add @zowanet/composite-url
bun add @zowanet/composite-url
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2023-06-27 |
| First published | 2023-06-27 |
| Weekly downloads | 0 |
| License | Unlicense |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=20.3.1 <21 |
| Dependencies | 0 |
| Unpacked size | 31.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | zowanet |
| Maintainers | zowanet-owner |
| Keywords | url |

## Links

- npm: https://www.npmjs.com/package/@zowanet/composite-url
- Repository: https://github.com/zowanet/composite-url-ts
- Issues: https://github.com/zowanet/composite-url-ts/issues
- npm.io page: https://npm.io/package/@zowanet/composite-url

## 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.1 (latest) — 2023-06-27
- 1.0.0 — 2023-06-27

## README

# composite-url

### Install

```bash
npm install @zowanet/composite-url
```

```bash
yarn add @zowanet/composite-url
```

```bash
pnpm add @zowanet/composite-url
```

### Import

```typescript
import CompositeURL from '@zowanet/composite-url';
```

```javascript
const { default: CompositeURL } = await import('@zowanet/composite-url');
```

### Usage

```typescript
console.log(new CompositeURL({
    protocol: 'protocol',
    username: 'username',
    password: 'password',
    hostname: 'hostname',
    port: 9999,
    pathname: 'pathname',
    search: 'search',
    hash: 'hash',
}).href); // "protocol://username:password@hostname:9999/pathname?search#hash"

console.log(new CompositeURL({
	uri: '/path/to/file?foo=bar&baz=qux#fragment',
}).pathname); // "/path/to/file"
```

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