Skip to content

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

License

Notifications You must be signed in to change notification settings

undoZen/q-superagent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published