{"id":19551426,"url":"https://github.com/olsonpm/koa-decoded-querystring","last_synced_at":"2026-05-16T19:09:22.975Z","repository":{"id":57289371,"uuid":"60757660","full_name":"olsonpm/koa-decoded-querystring","owner":"olsonpm","description":null,"archived":false,"fork":false,"pushed_at":"2016-06-14T01:44:56.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-08T23:04:31.849Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/olsonpm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-09T07:40:00.000Z","updated_at":"2018-10-21T13:00:17.000Z","dependencies_parsed_at":"2022-09-20T08:23:54.278Z","dependency_job_id":null,"html_url":"https://github.com/olsonpm/koa-decoded-querystring","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olsonpm%2Fkoa-decoded-querystring","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olsonpm%2Fkoa-decoded-querystring/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olsonpm%2Fkoa-decoded-querystring/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olsonpm%2Fkoa-decoded-querystring/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/olsonpm","download_url":"https://codeload.github.com/olsonpm/koa-decoded-querystring/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240807564,"owners_count":19860772,"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-11-11T04:13:50.676Z","updated_at":"2026-05-16T19:09:17.925Z","avatar_url":"https://github.com/olsonpm.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Koa Decoded Querystring\n\n## To use\n```js\nconst koaDecodedQuerystring = require('koa-decoded-querystring');\n// ...\napp.use(koaDecodedQuerystring());\n```\n\n## Very Simple\nThis module is 5 lines long\n\n```js\n// call function to allow for future options as advised by koa best-practices\nmodule.exports = () =\u003e\n  (ctx, next) =\u003e {\n    ctx.decodedQuerystring = decodeURIComponent(ctx.querystring);\n    return next();\n  };\n```\n\nSo when ctx.querystring contains \"%20\", decodedQuerystring will contain a\nspace instead\n\nI only created this module to isolate the testing and any further additions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folsonpm%2Fkoa-decoded-querystring","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Folsonpm%2Fkoa-decoded-querystring","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folsonpm%2Fkoa-decoded-querystring/lists"}