request-then

1.1.0 • Public • Published

request-then

A mashup of request with then/promise

Build Status NPM version

Install

npm install request-then --save

Example

var request = require('request-then');
 
request('http://example.com')
  .then(function handleResponse (response) {
    console.log(response);
  }, function handleError (error) {
    console.log(error);
  });

/request-then/

    Package Sidebar

    Install

    npm i request-then

    Weekly Downloads

    54

    Version

    1.1.0

    License

    MIT

    Last publish

    Collaborators

    • jgrund
    • johnsonw
    • wayneseymour