egg-xml-body
v1.0.3
Published
xml body parser for egg.js
Downloads
90
Readme
egg-xml-body
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.