# shitty-qs

> Shitty query strings parser

Latest version **1.0.1** (published 2014-07-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install shitty-qs
pnpm add shitty-qs
yarn add shitty-qs
bun add shitty-qs
```

## 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 | 2014-07-17 |
| First published | 2014-07-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 17 |
| Author | Egor Gumenyuk |
| Maintainers | boo1ean |
| Keywords | query, query-string, shitty, qs |

## Links

- npm: https://www.npmjs.com/package/shitty-qs
- Repository: https://github.com/boo1ean/shitty-qs
- Issues: https://github.com/boo1ean/shitty-qs/issues
- npm.io page: https://npm.io/package/shitty-qs

## 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.1 (latest) — 2014-07-17
- 1.0.0 — 2014-07-17

## README

## Shitty query strings parser

Did you ever meet `URIError: URI malformed`? Nice.

Dedicated to do not fail when `decodeURIComponent` fails (just return undecoded val).   
(and fast)
It uses `try {} catch (e) {}` while decoding tokens.

## Usage

```javascript
var qs = require('shitty-qs');
var q = qs('sid1=t728%F590&sid2=8518224&sid3=LA&sid4=188.19');

// ->

{
	sid1: 't728%F590',
	sid2: '8518224',
	sid3: 'LA',
	sid4: '188.19'
}
```

## Performance

Performance is roughly the same as without try-catch for valid query string

```
➜  node perf-test.js
shitty-qs normalStuff: 683ms
shitty-qs shittyStuff: 1782ms

qs normalStuff: 1244ms
qs shittyStuff: 2455ms

query-string normalStuff: 742ms
query-string shittyStuff: URIError: URI malformed
```

## FAQ

Q: Is it ready for production?   
A: YES!!!

## License
MIT

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