# koa-simple-qs

> Simple Koa query string support

Latest version **1.0.0** (published 2018-04-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install koa-simple-qs
pnpm add koa-simple-qs
yarn add koa-simple-qs
bun add koa-simple-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.0 |
| Published | 2018-04-20 |
| First published | 2016-10-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 55.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | James1x0 |
| Maintainers | james1x0 |
| Keywords | koa, qs, querystring |

## Links

- npm: https://www.npmjs.com/package/koa-simple-qs
- Repository: https://github.com/james1x0/koa-simple-qs
- Homepage: https://github.com/james1x0/koa-simple-qs#readme
- Issues: https://github.com/james1x0/koa-simple-qs/issues
- npm.io page: https://npm.io/package/koa-simple-qs

## Dependencies (1)

- [qs](https://npm.io/package/qs.md) ^6.3.0

## 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.0 (latest) — 2018-04-20
- 0.0.3 — 2016-10-17
- 0.0.2 — 2016-10-17
- 0.0.1 — 2016-10-17

## README

# koa-simple-qs
A simple alias of [qs](https://github.com/ljharb/qs) for koa.

**Use 1.x versions for koa 2.x-3.x support**

### Why not koa-qs?
1. Middleware usage
2. Not all apps are alike. Configure it with your own options.

### Usage

```javascript
let app = new Koa();
app.use(require('koa-simple-qs')());

app.get('/test', async (ctx) => {
  console.log(ctx.request.body);
});

...

/*
  /test?q=test => { q: 'test' }
 */
```

#### With options
```javascript
let app = new Koa();
app.use(require('koa-simple-qs')({
  strictNullHandling: true
}));

app.get('/test', async (ctx) => {
  console.log(ctx.request.body);
});

...

/*
  /test?q=test&a => { q: 'test', a: null }
 */
```

---

PRs welcome

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