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');
var superagentRx = require('superagent-rx');
superagentRx(superagent);
superagent
.get(requestUrl)
.observe()
.subscribe(function(res) {
should(res.body.test).equal('OK');
done();
});
License
MIT
Package Sidebar
Install
Weekly Downloads