XML request body parser for Koa
XML request body parser for koa
npm install --save koa-xml
const koa = require('koa')
const xml = require('koa-xml')
const options = {
normalize: true,
firstCharLowerCase: true,
explicitArray: false,
ignoreAttrs: true
}
app.use(xml(options))
Uses xml2js see all available [options] (https://github.com/Leonidas-from-XIV/node-xml2js#options)
Supported methods: POST
, PUT
, PATCH
, and TRACE
.
Supported Content-Type
: application/xml
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)koa-xml is released under the MIT License.