cc-superagent-promise

0.2.0-d • Public • Published

superagent-promise

Simple/dumb promise wrapper for superagent. Both superagent and promise are peerDependencies.

Usage

var agent = require('superagent-promise');
 
// method, url form
agent('GET', 'http://google.com').
  end().
  then(function onResult(res) {
  });
 
// helper functions: get, head, patch, post, put, del
agent().
  put('http://myxfoo', 'data').
  end().
  then(function(res) {
  });
 

/cc-superagent-promise/

    Package Sidebar

    Install

    npm i cc-superagent-promise

    Weekly Downloads

    2

    Version

    0.2.0-d

    License

    MIT

    Last publish

    Collaborators

    • undozen