# kb-uri

> a uri parser and resolver

Latest version **1.0.0** (published 2020-04-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install kb-uri
pnpm add kb-uri
yarn add kb-uri
bun add kb-uri
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2020-04-15 |
| First published | 2020-04-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 86 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Keuby |
| Maintainers | knight.chen |
| Keywords | uri, parser |

## Links

- npm: https://www.npmjs.com/package/kb-uri
- Repository: https://github.com/keuby/kb-uri
- Homepage: https://github.com/keuby/kb-uri#readme
- Issues: https://github.com/keuby/kb-uri/issues
- npm.io page: https://npm.io/package/kb-uri

## Dependencies (1)

- [ts-node](https://npm.io/package/ts-node.md) ^8.8.2

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2020-04-15

## README

# Kb-URI

一个处理 URL 的前端小工具

## Install

```bash
yarn add kb-uri

# or use npm

npm install kb-uri --save
```

## Usage

```js
import URI from 'kb-uri'

const uri = new URI('https://www.example.com:8080/path/to/index.html?id=1#hash')
uri.query.set('name', 'blob')
uri.href // https://www.example.com:8080/path/to/index.html?id=1&name=blog#hash
uri.query.get('id') // 1
uri.query.remove('id')
uri.queryString // ?name=blog
```

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