koa-simple-body
npm install koa-simple-body
Coherent and consistent body parsing implementation for Koa v2.
Supports multipart, url-encoded and JSON data by default. Check the index.js
for the specific MIME types.
Everything it doesn't understand is parsed as plain text.
Usage
Defaults
const Koa = const bodyParser = const app = app app
That's it!
Extra options
For more information on the Formidable.IncomingForm
options available, see the
felixge/node-formidable repository.
Roadmap
2.0
- Add support for bubbling errors to middleware (feedback and suggestions for API encouraged)
- Ensure default size settings are coherent and best defaults
License
MIT - see LICENSE file.