koa-query-checker
v2.0.3
Published
query chekcer middlware for koa
Downloads
6
Readme
koa-query-checker
Query checker middlware for koa. If the query string is illegal, it will redirect with the query string.
Installation
$ npm install koa-query-checker
Examples
View the ./examples directory for working examples.
API
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