{"library":"body-parser-xml","type":"library","category":null,"description":"`body-parser-xml` is an Express.js middleware that extends the widely used `body-parser` library, enabling applications to seamlessly parse incoming XML-formatted request bodies into JavaScript objects. Currently at stable version 2.0.5, this package integrates an `xml` method directly onto the `body-parser` object, allowing developers to handle XML APIs while working with familiar JSON-like structures. Its release cadence reflects active maintenance, with recent updates addressing Node.js version compatibility (supporting Node 10 and above) and critical security vulnerabilities, including prototype pollution and `xml2js` dependency issues. A key differentiator is its straightforward integration model, piggybacking on `body-parser`'s established middleware pattern and providing extensive options for XML parsing via the underlying `xml2js` library, such as `normalize` and `explicitArray`. This approach simplifies the handling of diverse XML content types in Express applications.","language":"javascript","status":"active","version":"2.0.5","tags":["javascript","express","xml","middleware","body-parser"],"last_verified":"Wed May 27","install":[{"cmd":"npm install body-parser-xml","imports":["const bodyParser = require('body-parser'); require('body-parser-xml')(bodyParser);","import bodyParser from 'body-parser'; import bodyParserXml from 'body-parser-xml'; bodyParserXml(bodyParser);","app.use(bodyParser.xml({ limit: '1MB' }));"]},{"cmd":"yarn add body-parser-xml","imports":[]},{"cmd":"pnpm add body-parser-xml","imports":[]}],"homepage":null,"github":"https://github.com/fiznool/body-parser-xml","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/body-parser-xml","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/body-parser-xml/compatibility"}}