1.0.3 • Published 5 years ago

egg-xml-body v1.0.3

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

egg-xml-body

NPM version build status Test coverage David deps Known Vulnerabilities npm download

Install

$ npm i egg-xml-body --save

Usage

// {app_root}/config/plugin.js
exports.xmlBody = {
  enable: true,
  package: 'egg-xml-body',
};

Configuration

egg-xml-body support all the configurations in koa-xml-body. and with default configurations below:

  • encoding: 'utf8'
  • limit: '1mb'
  • key: 'body'
  • xmlOptions: {}, see the xml2js options for detail
// {app_root}/config/config.default.js
exports.xmlBody = {
};

see config/config.default.js for more detail.

Questions & Suggestions

Please open an issue here.

License

MIT