0.4.0 • Published 7 years ago

superagent-rx v0.4.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

superagent-rx

A plugin for superagent that allows getting results as Rx.Observable.

Installation

Install with npm:

$ npm install superagent-rx

Usage

var superagent = require('superagent');
// load and apply plugin
var superagentRx = require('superagent-rx');
superagentRx(superagent);

superagent
  .get(requestUrl)
  .observe() // this returns Rx.Observable
  .subscribe(function(res) {
      should(res.body.test).equal('OK');
      done();
  });

License

MIT

0.4.0

7 years ago

0.3.0

9 years ago

0.2.0

9 years ago

0.1.0

9 years ago