项目作者: rafaeljesus

项目描述 :
XML request body parser for Koa
高级语言: JavaScript
项目地址: git://github.com/rafaeljesus/koa-xml.git
创建时间: 2015-10-02T00:51:17Z
项目社区:https://github.com/rafaeljesus/koa-xml

开源协议:

下载


koa-xml

Node version
NPM version
Build Status
bitHound Score
bitHound Dependencies
license

XML request body parser for koa

Usage

  1. npm install --save koa-xml
  1. const koa = require('koa')
  2. const xml = require('koa-xml')
  3. const options = {
  4. normalize: true,
  5. firstCharLowerCase: true,
  6. explicitArray: false,
  7. ignoreAttrs: true
  8. }
  9. app.use(xml(options))

Xml parse 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

Contributing

  • Fork it
  • Create your feature branch (git checkout -b my-new-feature)
  • Commit your changes (git commit -am 'Add some feature')
  • Push to the branch (git push origin my-new-feature)
  • Create new Pull Request

Maintaners

License

koa-xml is released under the MIT License.