1.0.1 • Published 10 years ago

q-superagent v1.0.1

Weekly downloads
32
License
MIT
Repository
github
Last release
10 years ago

q-superagent

A simple plugin for superagent to return promise generated by Q. Just use request.q() instead of request.end()

##Installation

npm install --save-dev superagent q-superagent

##Usage

var request = require('superagent');
require('q-superagent')(request);

or

GLOBAL.supervisor = require('superagent');
require('q-superagent'); // patch applied automatically.

##Changes

###1.0.1

If there is a superagent variable in global, apply this patch to it automatically.

##License

MIT