superagent-rx

0.4.0 • Public • Published

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

/superagent-rx/

    Package Sidebar

    Install

    npm i superagent-rx

    Weekly Downloads

    1

    Version

    0.4.0

    License

    MIT

    Last publish

    Collaborators

    • yamalight