Socket
Book a DemoInstallSign in
Socket

fax-body

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fax-body

Parse response bodies with generators

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

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

Keywords

fax

FAQs

Package last updated on 01 Dec 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts