Skip to content

rafaeljesus/koa-xml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

koa-xml

Node version NPM version Build Status bitHound Score bitHound Dependencies license

XML request body parser for koa

Usage

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))

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.

About

XML request body parser for Koa

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published