# @nodifier/url-parser

> Parse url string into object of url components

Latest version **1.0.3** (published 2023-07-27) · ISC license · 0 weekly downloads

## Install

```sh
npm install @nodifier/url-parser
pnpm add @nodifier/url-parser
yarn add @nodifier/url-parser
bun add @nodifier/url-parser
```

## 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.3 |
| Published | 2023-07-27 |
| First published | 2023-07-07 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 69 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | gamemasterdev |
| Maintainers | gamemasterdev |
| Keywords | nodify, url-parser, url, parser, nodejs |

## Links

- npm: https://www.npmjs.com/package/@nodifier/url-parser
- npm.io page: https://npm.io/package/@nodifier/url-parser

## 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.3 (latest) — 2023-07-27
- 0.0.1-beta.0 (beta) — 2023-07-07
- 1.0.2 — 2023-07-27
- 1.0.1 — 2023-07-07
- 1.0.0 — 2023-07-07

## README

# @nodifier/url-parser

A node module to parse url string into object of url components

## How to use?

```typescript
import { parseUrl } from "@nodify/url-parser";

const urlComponents = parseUrl("https://mytestdomain.com/sample/read?book=1");
```

### Output

```json
{
  "host": "mytestdomain.com",
  "protocol": "https",
  "path": "/sample/read",
  "queryString": "book"
}
```

## Return Types

```typescript
host: string;
path: string;
port: string;
protocol: string;
username: string;
password: string;
```

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