q-superagent

1.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i q-superagent

Weekly Downloads

5

Version

1.0.1

License

MIT

Last publish

Collaborators

  • undozen