https://github.com/vicanso/koa-query-checker
query checker middleware for koa
https://github.com/vicanso/koa-query-checker
Last synced: 4 months ago
JSON representation
query checker middleware for koa
- Host: GitHub
- URL: https://github.com/vicanso/koa-query-checker
- Owner: vicanso
- License: mit
- Created: 2015-06-24T12:56:29.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-10-13T12:39:30.000Z (almost 9 years ago)
- Last Synced: 2025-01-27T22:48:16.125Z (8 months ago)
- Language: JavaScript
- Size: 24.4 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# koa-query-checker
Query checker middlware for koa. If the query string is illegal, it will redirect with the query string.
[](https://travis-ci.org/vicanso/koa-query-checker)
[](https://coveralls.io/r/vicanso/koa-query-checker?branch=master)
[](https://www.npmjs.org/package/koa-query-checker)
[](https://github.com/vicanso/koa-query-checker)## Installation
```bash
$ npm install koa-query-checker
```## Examples
View the [./examples](examples) directory for working examples.
## API
```js
const Koa = require('koa');
const koaQueryChecker = require('koa-query-checker');
const app = new Koa();
app.use(koaQueryChecker('cache=false'));
```### param
querystring, eg:cache=false or cache=false&type=0
## License
MIT