npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

fax-body

1.0.1

@yoshuawuyts

npmHomeRepoSnykSocket
Downloads:13
$ npm install fax-body
DailyWeeklyMonthlyYearly

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

  • co-body
  • fax

License

MIT