Skip to content

LouisWT/egg-xml-body

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

xml body parser for egg.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published