0.1.2 • Published 7 years ago

xhr-rx-bare v0.1.2

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

xhr-rx-bare

Copied and generalized from here: http://www.sitepoint.com/functional-reactive-programming-rxjs/

Bare bones Rx-based XHR.

example

var xhrRx = require('xhr-rx-bare')

xhrRx('https://baconipsum.com/api/?type=all-meat&paras=2&start-with-lorem=1')
  .subscribe(
    function (response) {
      document.querySelector('#app').innerHTML = JSON.parse(response)[0]
    },
    function (err) {
      console.log(err)
    })

install

npm install --save xhr-rx-bare

license

MIT

0.1.2

7 years ago

0.1.1

8 years ago

0.1.0

8 years ago