kwest-body

v0.0.3
Reads the body from a kwest response.
kwest body

kwest-body Build Status Dependency Status

Reads the body from a kwest kwest response and adds it as a body property.

Installation

$ npm install --save kwest-body

Use

Just add the body middleware

var request = require('kwest'),
    body    = require('kwest-body');

request.use(body());

request('http://www.example.com')
  .then(function (res) {
    // now the response has a .body property
    console.log(res.body);
  })
npm i kwest-body

Metadata

  • MIT
  • Whatever
  • Jan Potoms
  • released 11/16/2014

Downloads

Maintainers