1.0.6 • Published 5 years ago

xml-body v1.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

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

1.0.6

5 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago