# query-parser-url

> A Node.js module that parses query string of url and makes them into an object

Latest version **1.0.5** (published 2021-03-14) · ISC license · 0 weekly downloads

## Install

```sh
npm install query-parser-url
pnpm add query-parser-url
yarn add query-parser-url
bun add query-parser-url
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2021-03-14 |
| First published | 2020-08-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | cc6656 |
| Maintainers | cc6656 |
| Keywords | url, query |

## Links

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

## Alternatives

- [gamedig](https://npm.io/package/gamedig.md) — 29.3K weekly downloads
- [join-monster](https://npm.io/package/join-monster.md) — 12.8K weekly downloads
- [masked](https://npm.io/package/masked.md) — 5.5K weekly downloads
- [@comunica/actor-query-process-explain-logical](https://npm.io/package/@comunica/actor-query-process-explain-logical.md) — 4.7K weekly downloads
- [@veracity/vui](https://npm.io/package/@veracity/vui.md) — 4.6K weekly downloads

## Recent versions

- 1.0.5 (latest) — 2021-03-14
- 1.0.4 — 2020-08-13
- 1.0.3 — 2020-08-13
- 1.0.2 — 2020-08-13
- 1.0.1 — 2020-08-13
- 1.0.0 — 2020-08-13

## README

# query-parser

query-parser makes you easy to parse query string of url or even request in <b>
express of node.js</b>

## Input

input urlSearch which is a string has to be like

```javascript
urlSearch = "code=123&address=123";
```

## Usage

```javascript
const queryObject = queryParser(urlSearch);
```

## Output

querObject which is an ouptut of queryParser looks like

```javascript
{
  code : 123,
  address : 123,
}
```

#### You can also use queryParser in Web browser though It is recommended to user serarch method of location object which is embedded in window object.

If you use search method, you can use like

```javascript
const url = "http://example.com/index.php?foo=bar";
location.search.substring(1);
// 'foo=bar'
```

# Thank you!

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