README
Xml-body
Koa xml parser,Convert ctx.request.body -> JSON after
koa-body
Usage
$ npm i xml-body
const koa = require('koa')
const xmlBody = require('xml-body')
// Default Options
const options = {
explicitRoot: false,
explicitArray: false
}
app.use(xmlBody(options))
Xml parse options
Uses xml2js see all available options
Supported Content-Type
: application/xml
, text/xml
, etc.
Authors
Yanglin (i@yangl.in)
License
Copyright (c) 2018 Yanglin
Released under the MIT license