{"versions":{"5.0.0":{"name":"@koa/bodyparser","version":"5.0.0","description":"Koa body parsing middleware","main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.js","import":"./dist/index.mjs","types":"./dist/index.d.ts"}},"scripts":{"build":"tsup","lint":"xo","lint:fix":"xo --fix","test":"jest --detectOpenHandles","test-ci":"npm run test -- --coverage","prepublishOnly":"npm run build"},"keywords":["koa","body","request-body","bodyParser","json","urlencoded","text","xml"],"author":{"name":"dead_horse","email":"dead_horse@qq.com","url":" http://deadhorse.me"},"contributors":[{"name":"Imed Jaberi","email":"imed_jebari@hotmail.fr"}],"license":"MIT","devDependencies":{"@types/co-body":"^6.1.0","@types/jest":"^29.5.0","@types/koa":"^2.13.6","@types/lodash.merge":"^4.6.7","@types/node":"^18.15.11","@types/supertest":"^2.0.12","@types/type-is":"^1.6.3","eslint-config-xo-lass":"^2.0.1","husky":"^8.0.3","jest":"^29.5.0","koa":"^2.14.1","supertest":"^6.3.3","ts-jest":"^29.0.5","ts-node":"^10.9.1","tsup":"^6.7.0","typescript":"^5.0.3","xo":"^0.54.2"},"dependencies":{"co-body":"^6.1.0","lodash.merge":"^4.6.2","type-is":"^1.6.18"},"engines":{"node":">= 16"},"repository":{"type":"git","url":"git://github.com/koajs/bodyparser.git"},"bugs":{"url":"https://github.com/koajs/body-parser/issues"},"homepage":"https://github.com/koajs/body-parser","publishConfig":{"access":"public"},"gitHead":"89e0524c35acf0ba0d49e97342d5e1b9db92f233","_id":"@koa/bodyparser@5.0.0","_nodeVersion":"18.16.1","_npmVersion":"9.3.1","dist":{"integrity":"sha512-JEiZVe2e85qPOqA+Nw/SJC5fkFw3XSekh0RSoqz5F6lFYuhEspgqAb972rQRCJesv27QUsz96vU/Vb92wF1GUg==","shasum":"dd24c9a0c94ac0def0ac79cd37cc18ab1a8ad58f","tarball":"http://123.232.10.234:8212/nexus/content/repositories/npm-private/@koa/bodyparser/-/bodyparser-5.0.0.tgz","fileCount":15,"unpackedSize":37323,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCymyjiFs2B1JmgBLapYgc78qGNu7pGs8zk82RxSdueSwIgbQSQvodrfb/4o51d6miYInnCDQIdMQ/yhvuoTw/idng="}],"size":6330},"_npmUser":{"name":"anonymous","email":"fengmk2@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"ljharb@gmail.com"},{"name":"anonymous","email":"imed_jebari@hotmail.fr"},{"name":"anonymous","email":"npm@titanism.com"},{"name":"anonymous","email":"niftylettuce@gmail.com"},{"name":"anonymous","email":"fengmk2@gmail.com"},{"name":"anonymous","email":"dead_horse@qq.com"},{"name":"anonymous","email":"jonathanrichardong@gmail.com"},{"name":"anonymous","email":"julian@juliangruber.com"},{"name":"anonymous","email":"aaron.heckmann+github@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bodyparser_5.0.0_1687656600908_0.9994364866807077"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-06-25T01:30:01.137Z","publish_time":1687656601137,"_source_registry_name":"default"},"5.1.0":{"name":"@koa/bodyparser","version":"5.1.0","description":"Koa body parsing middleware","main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.js","import":"./dist/index.mjs","types":"./dist/index.d.ts"}},"scripts":{"build":"tsup","lint":"xo","lint:fix":"xo --fix","test":"jest --detectOpenHandles","test-ci":"npm run test -- --coverage","prepublishOnly":"npm run build"},"keywords":["koa","body","request-body","bodyParser","json","urlencoded","text","xml"],"author":{"name":"dead_horse","email":"dead_horse@qq.com","url":" http://deadhorse.me"},"contributors":[{"name":"Imed Jaberi","email":"imed_jebari@hotmail.fr"}],"license":"MIT","devDependencies":{"@types/co-body":"^6.1.0","@types/jest":"^29.5.0","@types/koa":"^2.13.6","@types/lodash.merge":"^4.6.7","@types/node":"^18.15.11","@types/supertest":"^2.0.12","@types/type-is":"^1.6.3","eslint-config-xo-lass":"^2.0.1","husky":"^8.0.3","jest":"^29.5.0","koa":"^2.14.1","supertest":"^6.3.3","ts-jest":"^29.0.5","ts-node":"^10.9.1","tsup":"^6.7.0","typescript":"^5.0.3","xo":"^0.54.2"},"dependencies":{"co-body":"^6.1.0","lodash.merge":"^4.6.2","type-is":"^1.6.18"},"engines":{"node":">= 16"},"repository":{"type":"git","url":"git://github.com/koajs/bodyparser.git"},"bugs":{"url":"https://github.com/koajs/body-parser/issues"},"homepage":"https://github.com/koajs/body-parser","publishConfig":{"access":"public"},"gitHead":"8018af881374478ff68729e930c5dfe3eed16fc7","_id":"@koa/bodyparser@5.1.0","_nodeVersion":"20.11.1","_npmVersion":"9.3.1","dist":{"integrity":"sha512-i/BidRTrX2Yl5JYU6yuEG/KMvqNs5ZRTXELAypSKBKsTwQeAYi9OmX5AyAgr0TyOMeS0aQX1I329gO2VCim7Qg==","shasum":"0f9e53e37c2844e8026db4618005eac61f3b2559","tarball":"http://123.232.10.234:8212/nexus/content/repositories/npm-private/@koa/bodyparser/-/bodyparser-5.1.0.tgz","fileCount":15,"unpackedSize":37684,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCURAxn8yc/4g+qDwYZhQtS1n/lHlyeZdNxe4EWK5/nSgIhAOErF0ZJiix37+BIz8XEBVCvIOjheGvt9bqdq5RJoUTj"}],"size":6376},"_npmUser":{"name":"anonymous","email":"fengmk2@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"ljharb@gmail.com"},{"name":"anonymous","email":"imed_jebari@hotmail.fr"},{"name":"anonymous","email":"npm@titanism.com"},{"name":"anonymous","email":"niftylettuce@gmail.com"},{"name":"anonymous","email":"fengmk2@gmail.com"},{"name":"anonymous","email":"dead_horse@qq.com"},{"name":"anonymous","email":"jonathanrichardong@gmail.com"},{"name":"anonymous","email":"julian@juliangruber.com"},{"name":"anonymous","email":"aaron.heckmann+github@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bodyparser_5.1.0_1711333684729_0.8246980223597016"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-03-25T02:28:04.900Z","publish_time":1711333684900,"_source_registry_name":"default"},"5.1.1":{"name":"@koa/bodyparser","version":"5.1.1","description":"Koa body parsing middleware","main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.js","import":"./dist/index.mjs","types":"./dist/index.d.ts"}},"scripts":{"build":"tsup","lint":"xo","lint:fix":"xo --fix","test":"jest --detectOpenHandles","test-ci":"npm run test -- --coverage","prepublishOnly":"npm run build"},"keywords":["koa","body","request-body","bodyParser","json","urlencoded","text","xml"],"author":{"name":"dead_horse","email":"dead_horse@qq.com","url":" http://deadhorse.me"},"contributors":[{"name":"Imed Jaberi","email":"imed_jebari@hotmail.fr"}],"license":"MIT","devDependencies":{"@types/co-body":"^6.1.0","@types/jest":"^29.5.0","@types/koa":"^2.13.6","@types/lodash.merge":"^4.6.7","@types/node":"^18.15.11","@types/supertest":"^2.0.12","@types/type-is":"^1.6.3","eslint-config-xo-lass":"^2.0.1","husky":"^8.0.3","jest":"^29.5.0","koa":"^2.14.1","supertest":"^6.3.3","ts-jest":"^29.0.5","ts-node":"^10.9.1","tsup":"^6.7.0","typescript":"^5.0.3","xo":"^0.54.2"},"dependencies":{"co-body":"^6.1.0","lodash.merge":"^4.6.2","type-is":"^1.6.18"},"peerDependencies":{"koa":"^2.14.1"},"engines":{"node":">= 16"},"repository":{"type":"git","url":"git://github.com/koajs/bodyparser.git"},"bugs":{"url":"https://github.com/koajs/body-parser/issues"},"homepage":"https://github.com/koajs/body-parser","publishConfig":{"access":"public"},"gitHead":"e6fe74d9de9a6fe80c2b2f8f962eab02398cc6aa","_id":"@koa/bodyparser@5.1.1","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-ZBF49xqNVxnmJ+8iXegq+fXPQm9RSX8giNl/aXS5rW1VpNct92wnFbGR/47vfoRJVLARGQ4HVL4WaQ0u8IJVoA==","shasum":"cda8df0bc89339d6d9856ddee0d59f2ff3133d06","tarball":"http://123.232.10.234:8212/nexus/content/repositories/npm-private/@koa/bodyparser/-/bodyparser-5.1.1.tgz","fileCount":15,"unpackedSize":38206,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBtKUCIpXtPpEQIqywaSuSyO+uz/JKyAJEsW9g+bx5FfAiASTV9u9+BCsIjiO4BbOG2XAsAnRP/h4woUUNECarycEw=="}],"size":6398},"_npmUser":{"name":"anonymous","email":"npm@titanism.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"ljharb@gmail.com"},{"name":"anonymous","email":"imed_jebari@hotmail.fr"},{"name":"anonymous","email":"npm@titanism.com"},{"name":"anonymous","email":"niftylettuce@gmail.com"},{"name":"anonymous","email":"fengmk2@gmail.com"},{"name":"anonymous","email":"dead_horse@qq.com"},{"name":"anonymous","email":"jonathanrichardong@gmail.com"},{"name":"anonymous","email":"julian@juliangruber.com"},{"name":"anonymous","email":"aaron.heckmann+github@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bodyparser_5.1.1_1712608944810_0.874027079572361"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-04-08T20:42:24.989Z","publish_time":1712608944989,"_source_registry_name":"default"},"5.1.2":{"name":"@koa/bodyparser","version":"5.1.2","description":"Koa body parsing middleware","main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.js","import":"./dist/index.mjs","types":"./dist/index.d.ts"}},"scripts":{"build":"tsup","lint":"xo","lint:fix":"xo --fix","test":"jest --detectOpenHandles","test-ci":"npm run test -- --coverage","prepublishOnly":"npm run build"},"keywords":["koa","body","request-body","bodyParser","json","urlencoded","text","xml"],"author":{"name":"dead_horse","email":"dead_horse@qq.com","url":" http://deadhorse.me"},"contributors":[{"name":"Imed Jaberi","email":"imed_jebari@hotmail.fr"}],"license":"MIT","devDependencies":{"@types/co-body":"^6.1.0","@types/jest":"^29.5.0","@types/koa":"^2.13.6","@types/lodash.merge":"^4.6.7","@types/node":"^18.15.11","@types/supertest":"^2.0.12","@types/type-is":"^1.6.3","eslint-config-xo-lass":"^2.0.1","husky":"^8.0.3","jest":"^29.5.0","koa":"^2.14.1","supertest":"^6.3.3","ts-jest":"^29.0.5","ts-node":"^10.9.1","tsup":"^6.7.0","typescript":"^5.0.3","xo":"^0.54.2"},"dependencies":{"co-body":"^6.1.0","lodash.merge":"^4.6.2","type-is":"^1.6.18"},"peerDependencies":{"koa":"^2.14.1"},"engines":{"node":">= 16"},"repository":{"type":"git","url":"git://github.com/koajs/bodyparser.git"},"bugs":{"url":"https://github.com/koajs/body-parser/issues"},"homepage":"https://github.com/koajs/body-parser","publishConfig":{"access":"public"},"_id":"@koa/bodyparser@5.1.2","gitHead":"135bb85938d71f268e66e031a0ab531e4de26b21","_nodeVersion":"24.0.2","_npmVersion":"11.3.0","dist":{"integrity":"sha512-eGJm9/66iUX+LUH03Cz0e94unbSKrmSPCick4MO5UorAAomcjC5Kl+SkoZ6CSyPew3neMYjj7n+djnlGYBSJAg==","shasum":"d3f242e616dce2db9dcaadf7ebc3129df4db35b2","tarball":"http://123.232.10.234:8212/nexus/content/repositories/npm-private/@koa/bodyparser/-/bodyparser-5.1.2.tgz","fileCount":15,"unpackedSize":38658,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQC5CbPegNnfAycsak6/zaecR87OYAs1mfVF43na9DviTAIhALM2wgCgUeBxzVbFCBUI0nM0D/JTCn05Bwj5pAJHAYP2"}],"size":6477},"_npmUser":{"name":"anonymous","email":"fengmk2@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"niftylettuce@gmail.com"},{"name":"anonymous","email":"fengmk2@gmail.com"},{"name":"anonymous","email":"dead_horse@qq.com"},{"name":"anonymous","email":"jonathanrichardong@gmail.com"},{"name":"anonymous","email":"julian@juliangruber.com"},{"name":"anonymous","email":"aaron.heckmann+github@gmail.com"},{"name":"anonymous","email":"npm@titanism.com"},{"name":"anonymous","email":"imed_jebari@hotmail.fr"},{"name":"anonymous","email":"ljharb@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/bodyparser_5.1.2_1747887778106_0.4501666157136823"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-05-22T04:22:58.276Z","publish_time":1747887778276,"_source_registry_name":"default"},"6.0.0":{"name":"@koa/bodyparser","version":"6.0.0","description":"Koa body parsing middleware","main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.js","import":"./dist/index.mjs"}},"scripts":{"build":"tsup","lint":"xo","lint:fix":"xo --fix","test":"jest --detectOpenHandles","test-ci":"npm run test -- --coverage","prepublishOnly":"npm run build"},"keywords":["koa","body","request-body","bodyParser","json","urlencoded","text","xml"],"author":{"name":"dead_horse","email":"dead_horse@qq.com","url":" http://deadhorse.me"},"contributors":[{"name":"Imed Jaberi","email":"imed_jebari@hotmail.fr"}],"license":"MIT","devDependencies":{"@types/jest":"^29.5.0","@types/koa":"^2.13.6","@types/lodash.merge":"^4.6.7","@types/node":"^22.15.21","@types/supertest":"^6.0.3","@types/type-is":"^1.6.3","eslint-config-xo-lass":"^2.0.1","husky":"^9.1.7","jest":"^29.7.0","koa":"^3.0.0","supertest":"^7.1.1","ts-jest":"^29.3.4","ts-node":"^10.9.2","tsup":"^8.5.0","typescript":"^5.8.3","xo":"^0.60.0"},"dependencies":{"@types/co-body":"^6.1.3","co-body":"^6.2.0","lodash.merge":"^4.6.2","type-is":"^2.0.1"},"peerDependencies":{"koa":">=2"},"engines":{"node":">= 18"},"repository":{"type":"git","url":"git://github.com/koajs/bodyparser.git"},"bugs":{"url":"https://github.com/koajs/body-parser/issues"},"homepage":"https://github.com/koajs/body-parser","publishConfig":{"access":"public"},"licenseText":"The MIT License (MIT)\n\nCopyright (c) 2014 dead_horse\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"@koa/bodyparser@6.0.0","dist":{"shasum":"e362ddb3691276064f36e8cbf79b66f5873360a0","integrity":"sha512-CjM/tiisZHBA9iVkOOyj/ocLCNJTbpLsIUjCbVkrx5rkUOZlsFf/qSbXzAbY2SNJTMl0VtKgVen6SZdjaCfVhA==","tarball":"http://123.232.10.234:8212/nexus/content/repositories/npm-private/@koa/bodyparser/-/bodyparser-6.0.0.tgz","fileCount":22,"unpackedSize":48079,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCeoxJW/Ml+z4/iPTz09g9rMQO+trUFQrkXUN2w9aY/PwIgV7bHUEBTKd2wdNqx9QcBkMV6bzS5BrTQFM6uFQiXU0s="}],"size":9291},"_npmUser":{"name":"anonymous","email":"imed_jebari@hotmail.fr"},"directories":{},"maintainers":[{"name":"anonymous","email":"niftylettuce@gmail.com"},{"name":"anonymous","email":"fengmk2@gmail.com"},{"name":"anonymous","email":"dead_horse@qq.com"},{"name":"anonymous","email":"jonathanrichardong@gmail.com"},{"name":"anonymous","email":"julian@juliangruber.com"},{"name":"anonymous","email":"aaron.heckmann+github@gmail.com"},{"name":"anonymous","email":"npm@titanism.com"},{"name":"anonymous","email":"imed_jebari@hotmail.fr"},{"name":"anonymous","email":"ljharb@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/bodyparser_6.0.0_1749083996832_0.5504756281750789"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-06-05T00:39:57.020Z","publish_time":1749083997020,"_source_registry_name":"default"},"6.1.0":{"name":"@koa/bodyparser","version":"6.1.0","description":"Koa body parsing middleware","main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.js","import":"./dist/index.mjs"}},"scripts":{"build":"tsup","lint":"xo","lint:fix":"xo --fix","test":"jest --detectOpenHandles","test-ci":"npm run test -- --coverage","prepublishOnly":"npm run build"},"keywords":["koa","body","request-body","bodyParser","json","urlencoded","text","xml"],"author":{"name":"dead_horse","email":"dead_horse@qq.com","url":" http://deadhorse.me"},"contributors":[{"name":"Imed Jaberi","email":"imed-jaberi@outlook.com"}],"license":"MIT","devDependencies":{"@types/jest":"^30.0.0","@types/koa":"^3.0.1","@types/lodash.merge":"^4.6.9","@types/node":"^25.0.10","@types/supertest":"^6.0.3","@types/type-is":"^1.6.7","eslint-config-xo-lass":"^2.0.1","husky":"^9.1.7","jest":"^30.2.0","koa":"^3.1.1","supertest":"^7.2.2","ts-jest":"^29.4.6","ts-node":"^10.9.2","tsup":"^8.5.1","typescript":"^5.9.3","xo":"^0.60.0"},"dependencies":{"@types/co-body":"^6.1.3","co-body":"^6.2.0","lodash.merge":"^4.6.2","type-is":"^2.0.1"},"peerDependencies":{"koa":">=2"},"engines":{"node":">= 18"},"repository":{"type":"git","url":"git://github.com/koajs/bodyparser.git"},"bugs":{"url":"https://github.com/koajs/bodyparser/issues"},"homepage":"https://github.com/koajs/bodyparser","publishConfig":{"access":"public"},"licenseText":"The MIT License (MIT)\n\nCopyright (c) 2014 dead_horse\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"@koa/bodyparser@6.1.0","dist":{"shasum":"8e001da5eedac39ef68ebcefc57f706e9a29423e","integrity":"sha512-thVG/Utbz9+dB4Nl8EBJKoaOI1DzO74dJqeDFILbAVhUq6C+4rmmrKFwxiDE63ScywOs0CHypx1IUrSRMueFTw==","tarball":"http://123.232.10.234:8212/nexus/content/repositories/npm-private/@koa/bodyparser/-/bodyparser-6.1.0.tgz","fileCount":22,"unpackedSize":47663,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIHOyX0/hdyHP7P4mFQ0Eo8yHyfHfkjI0uvvkZu6+T1mnAiEA5BlXPiMwLDIsZKdaVo/C12sqlzSgKD2z/ZPa5SwiAao="}],"size":9253},"_npmUser":{"name":"anonymous","email":"imed_jebari@hotmail.fr"},"directories":{},"maintainers":[{"name":"anonymous","email":"niftylettuce@gmail.com"},{"name":"anonymous","email":"fengmk2@gmail.com"},{"name":"anonymous","email":"dead_horse@qq.com"},{"name":"anonymous","email":"jonathanrichardong@gmail.com"},{"name":"anonymous","email":"julian@juliangruber.com"},{"name":"anonymous","email":"aaron.heckmann+github@gmail.com"},{"name":"anonymous","email":"npm@titanism.com"},{"name":"anonymous","email":"imed_jebari@hotmail.fr"},{"name":"anonymous","email":"ljharb@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/bodyparser_6.1.0_1769273157878_0.8279619658509323"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-01-24T16:45:58.018Z","publish_time":1769273158018,"_source_registry_name":"default"}},"dist-tags":{"latest":"6.1.0"},"name":"@koa/bodyparser","time":{"created":"2023-06-25T01:30:08.892Z","modified":"2026-01-24T16:46:10.425Z","5.0.0":"2023-06-25T01:30:01.137Z","5.1.0":"2024-03-25T02:28:04.900Z","5.1.1":"2024-04-08T20:42:24.989Z","5.1.2":"2025-05-22T04:22:58.276Z","6.0.0":"2025-06-05T00:39:57.020Z","6.1.0":"2026-01-24T16:45:58.018Z"},"readme":"# [**@koa/bodyparser**](https://github.com/koajs/bodyparser)\n\n[![NPM version][npm-image]][npm-url]\n![build status][github-action-image]\n[![Coveralls][coveralls-image]][coveralls-url]\n[![node version][node-image]][node-url]\n\n[npm-image]: https://img.shields.io/npm/v/@koa/bodyparser.svg?style=flat-square\n[npm-url]: https://www.npmjs.com/package/@koa/bodyparser\n[github-action-image]: https://github.com/koajs/bodyparser/actions/workflows/ci.yml/badge.svg?style=flat-square\n[coveralls-image]: https://img.shields.io/coveralls/koajs/bodyparser.svg?style=flat-square\n[coveralls-url]: https://coveralls.io/r/koajs/bodyparser?branch=master\n[node-image]: https://img.shields.io/badge/node.js-%3E=_14-green.svg?style=flat-square\n[node-url]: http://nodejs.org/download/\n\nKoa body parsing middleware, based on [co-body](https://github.com/tj/co-body). support `json`, `form` and `text` type body.\n\nParse incoming request bodies in a middleware before your handlers, available under the `ctx.request.body` property.\n\n> ⚠ Notice: **This module doesn't support parsing multipart format data**, please use [`@koa/multer`](https://github.com/koajs/multer) to parse multipart format data.\n\n## Install\n\n[![NPM](https://nodei.co/npm/@koa/bodyparser.png?downloads=true)](https://nodei.co/npm/@koa/bodyparser)\n\n```bash\n$ npm i @koa/bodyparser --save\n```\n\n## Usage\n\n```js\nconst Koa = require(\"koa\");\nconst { bodyParser } = require(\"@koa/bodyparser\");\n\nconst app = new Koa();\napp.use(bodyParser());\n\napp.use((ctx) => {\n  // the parsed body will store in ctx.request.body\n  // if nothing was parsed, body will be an empty object {}\n  ctx.body = ctx.request.body;\n});\n```\n\n## Options\n\n- **patchNode**: patch request body to Node's `ctx.req`, default is `false`.\n- **enableTypes**: parser will only parse when request type hits enableTypes, support `json/form/text/xml`, default is `['json', 'form']`.\n- **encoding**: requested encoding. Default is `utf-8` by `co-body`.\n- **formLimit**: limit of the `urlencoded` body. If the body ends up being larger than this limit, a 413 error code is returned. Default is `56kb`.\n- **jsonLimit**: limit of the `json` body. Default is `1mb`.\n- **textLimit**: limit of the `text` body. Default is `1mb`.\n- **xmlLimit**: limit of the `xml` body. Default is `1mb`.\n- **jsonStrict**: when set to true, JSON parser will only accept arrays and objects. Default is `true`. See [strict mode](https://github.com/cojs/co-body#options) in `co-body`. In strict mode, `ctx.request.body` will always be an object(or array), this avoid lots of type judging. But text body will always return string type.\n- **detectJSON**: custom json request detect function. Default is `null`.\n\n  ```js\n  app.use(\n    bodyParser({\n      detectJSON(ctx) {\n        return /\\.json$/i.test(ctx.path);\n      },\n    })\n  );\n  ```\n\n- **extendTypes**: support extend types:\n\n  ```js\n  app.use(\n    bodyParser({\n      extendTypes: {\n        // will parse application/x-javascript type body as a JSON string\n        json: [\"application/x-javascript\"],\n      },\n    })\n  );\n  ```\n\n- **onError**: support custom error handle, if `koa-bodyparser` throw an error, you can customize the response like:\n\n  ```js\n  app.use(\n    bodyParser({\n      onError(err, ctx) {\n        ctx.throw(422, \"body parse error\");\n      },\n    })\n  );\n  ```\n\n- **enableRawChecking**: support the already parsed body on the raw request by override and prioritize the parsed value over the sended payload. (default is `false`)\n\n- **parsedMethods**: declares the HTTP methods where bodies will be parsed, default `['POST', 'PUT', 'PATCH']`.\n\n- **disableBodyParser**: you can dynamic disable body parser by set `ctx.disableBodyParser = true`.\n\n  ```js\n  app.use((ctx, next) => {\n    if (ctx.path === \"/disable\") ctx.disableBodyParser = true;\n    return next();\n  });\n  app.use(bodyParser());\n  ```\n\n## Raw Body\n\nYou can access raw request body by `ctx.request.rawBody` after `koa-bodyparser` when:\n\n1. `koa-bodyparser` parsed the request body.\n2. `ctx.request.rawBody` is not present before `koa-bodyparser`.\n\n## Koa v1.x.x Support\n\nTo use `koa-bodyparser` with koa@1.x.x, please use [bodyparser 2.x](https://github.com/koajs/bodyparser/tree/2.x).\n\n```bash\n$ npm install koa-bodyparser@2 --save\n```\n\nusage\n\n```js\nconst Koa = require(\"koa\");\nconst bodyParser = require(\"@koa/bodyparser\");\n\nconst app = new Koa();\napp.use(bodyParser());\n\napp.use((ctx) => {\n  // the parsed body will store in ctx.request.body\n  // if nothing was parsed, body will be an empty object {}\n  ctx.body = ctx.request.body;\n});\n```\n\n## Licences\n\n[MIT](LICENSE)","users":{}}