fax-body

1.0.1 • Public • Published

fax-body

NPM version build status Test coverage Downloads

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.

See also

License

MIT

Package Sidebar

Install

npm i fax-body

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • yoshuawuyts