{"id":13779784,"url":"https://github.com/koajs/querystring-strict","last_synced_at":"2025-10-08T02:31:48.817Z","repository":{"id":27918504,"uuid":"31410584","full_name":"koajs/querystring-strict","owner":"koajs","description":"THIS REPOSITORY IS NOW DEPRECATED","archived":true,"fork":false,"pushed_at":"2016-01-26T19:42:13.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-10-30T00:55:26.784Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/koajs.png","metadata":{"files":{"readme":"README.md","changelog":"History.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-27T08:39:56.000Z","updated_at":"2024-07-21T00:33:54.000Z","dependencies_parsed_at":"2022-08-02T10:50:39.013Z","dependency_job_id":null,"html_url":"https://github.com/koajs/querystring-strict","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koajs%2Fquerystring-strict","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koajs%2Fquerystring-strict/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koajs%2Fquerystring-strict/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koajs%2Fquerystring-strict/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koajs","download_url":"https://codeload.github.com/koajs/querystring-strict/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234826458,"owners_count":18892810,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T18:01:09.213Z","updated_at":"2025-10-08T02:31:43.369Z","avatar_url":"https://github.com/koajs.png","language":"JavaScript","funding_links":[],"categories":["Middleware"],"sub_categories":[],"readme":"# THIS REPOSITORY IS NOW DEPRECATED\n\nThis module had been merged into [koa-qs](https://github.com/koajs/qs), please use the `first` mode.\n\n```js\nrequire('koa-qs')(app, 'first')\n```\n\nquerystring-strict\n=======\n\n[![NPM version][npm-image]][npm-url]\n[![build status][travis-image]][travis-url]\n[![appveyor build status][appveyor-image]][appveyor-url]\n[![Test coverage][coveralls-image]][coveralls-url]\n[![Gittip][gittip-image]][gittip-url]\n[![David deps][david-image]][david-url]\n[![iojs version][iojs-image]][iojs-url]\n[![node version][node-image]][node-url]\n[![npm download][download-image]][download-url]\n\n[npm-image]: https://img.shields.io/npm/v/koa-querystring-strict.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/koa-querystring-strict\n[travis-image]: https://img.shields.io/travis/koajs/querystring-strict.svg?style=flat-square\n[travis-url]: https://travis-ci.org/koajs/querystring-strict\n[appveyor-image]: https://ci.appveyor.com/api/projects/status/ija0bd5d7esb54x3?svg=true\n[appveyor-url]: https://ci.appveyor.com/project/fengmk2/querystring-strict\n[coveralls-image]: https://img.shields.io/coveralls/koajs/querystring-strict.svg?style=flat-square\n[coveralls-url]: https://coveralls.io/r/koajs/querystring-strict?branch=master\n[gittip-image]: https://img.shields.io/gittip/fengmk2.svg?style=flat-square\n[gittip-url]: https://www.gittip.com/fengmk2/\n[david-image]: https://img.shields.io/david/koajs/querystring-strict.svg?style=flat-square\n[david-url]: https://david-dm.org/koajs/querystring-strict\n[iojs-image]: https://img.shields.io/badge/io.js-%3E=_1.0-yellow.svg?style=flat-square\n[iojs-url]: http://iojs.org/\n[node-image]: https://img.shields.io/badge/node.js-%3E=_0.11-green.svg?style=flat-square\n[node-url]: http://nodejs.org/download/\n[download-image]: https://img.shields.io/npm/dm/koa-querystring-strict.svg?style=flat-square\n[download-url]: https://npmjs.org/package/koa-querystring-strict\n\nThis patches a koa app with `this.query.foo` return strict `string`. Disable multi values.\n\nIn 95% use cases, application only want `string` query params.\n\nThis patch can avoid some stupid `TypeError` and some security issues like [MongoDB inject](http://www.wooyun.org/bugs/wooyun-2010-086474)\nwhen the developers forget handling query params type check.\n\n## What's different\n\nA normal request `GET /foo?p=a,b\u0026p=b,c`.\n\n- before patch\n\n```js\nconsole.log('%j', this.query.p);\n[\"a,b\", \"b,c\"]\n```\n\n- after patch\n\n```js\nconsole.log('%j', this.query.p);\n\"a,b\"\n```\n\n## Install\n\n```bash\n$ npm i koa-querystring-strict\n```\n\n## Usage\n\n```js\nvar koa = require('koa');\nvar app = koa();\nrequire('koa-querystring-strict')(app);\n```\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoajs%2Fquerystring-strict","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoajs%2Fquerystring-strict","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoajs%2Fquerystring-strict/lists"}