# url-query-parser

> A simple script for parsing and manipulating application/x-www-form-urlencoded data

Latest version **2.0.6** (published 2020-07-12) · MIT license · 0 weekly downloads

## Install

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

## 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 | 2.0.6 |
| Published | 2020-07-12 |
| First published | 2017-02-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 28.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | larryc5 |
| Maintainers | larryc5 |

## Links

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

## Recent versions

- 2.0.6 (latest) — 2020-07-12
- 2.0.5 — 2020-07-12
- 2.0.4 — 2020-07-12
- 2.0.3 — 2019-04-20
- 2.0.2 — 2019-04-20
- 2.0.1 — 2019-04-20
- 2.0.0 — 2019-04-19
- 1.1.0 — 2017-03-04
- 1.0.0 — 2017-02-19

## README

# url-query-parser

A simple script for parsing and manipulating application/x-www-form-urlencoded data (such as the query strings in URLs). Works in both browsers and node.js.

### Usage

```js
import Query from 'url-query-parser';

let query = new Query('foo=bar&biz=baz');

console.log(query.get('foo')); // <= 'bar'
```

There's a bunch of things it can do. Check out [src/query.spec.ts](src/query.spec.ts) for details.

If instead you just want simple `string->object` and `object->string` functions, you can use `url-query-parser/simple`.

```js
const Query = require('url-query-parser/simple');

let query = Query.parse('foo=bar&biz=baz');
console.log(query); // <= { foo: 'bar', biz: 'baz' }
console.log(Query.stringify(query)); // <= 'foo=bar&biz=baz'
```

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