Miss any of our Open RFC calls?Watch the recordings here! »

kwest-body

0.0.3 • Public • Published

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);
  })

Keywords

Install

npm i kwest-body

DownloadsWeekly Downloads

1

Version

0.0.3

License

MIT

Last publish

Collaborators

  • avatar