fax-body
v1.0.1
Published
Parse response bodies with generators
Downloads
7
Maintainers
Readme
fax-body
Parse response bodies with generators based on co-body.
Installation
npm install fax-body
Usage
// application/json
var body = yield parse(req);
// explicit limit, defaults to 1mb
var body = yield parse(req, {limit: '10kb'});
Why?
fax has no notion of body parsing, so by moving it out into a module there can be custom body parsers for any type of content.