{"library":"koa-xml-body","type":"library","category":null,"description":"koa-xml-body is a Koa middleware designed to parse XML request bodies, making the parsed data available on `ctx.request.body`. The current stable version is 3.0.0, published approximately 3 years ago, which is compatible with Koa 2.x and 3.x, while Koa 1.x users should opt for `koa-xml-body@1.x`. It internally uses `xml2js` for the actual XML parsing, exposing its configuration options via the `xmlOptions` property. Key differentiators include its explicit focus on XML content types (e.g., `application/xml`, `text/xml`), robust error handling customization through an `onerror` callback, and seamless integration with other body parsers by carefully managing `ctx.request.body`. Its release cadence is generally tied to bug fixes or Koa compatibility updates rather than rapid feature additions, suggesting a maintenance-oriented status.","language":"javascript","status":"maintenance","version":"3.0.0","tags":["javascript","xml","body","bodyParser","koa","middleware","xml2js","xml parser"],"last_verified":"Wed May 27","install":[{"cmd":"npm install koa-xml-body","imports":["import koaXmlBody from 'koa-xml-body';","const xmlParser = require('koa-xml-body');","import koaXmlBody from 'koa-xml-body';\napp.use(koaXmlBody({ limit: '5mb', xmlOptions: { explicitArray: false } }));"]},{"cmd":"yarn add koa-xml-body","imports":[]},{"cmd":"pnpm add koa-xml-body","imports":[]}],"homepage":null,"github":"https://github.com/creeperyang/koa-xml-body","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/koa-xml-body","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/koa-xml-body/compatibility"}}