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

Readme

Keywords

Package Sidebar

Install

npm i kwest-body

Weekly Downloads

2

Version

0.0.3

License

MIT

Last publish

Collaborators

  • janpotoms