Request Wikipedia API with NodeJs and RX Observables

RX_observables_NodejsReactiveX is one of those things that if you start using it then there is no turn back. RX observables gives you freedom and control at the same time. Below is a small code example on how to create an observable and subscribe to it. To observe a nodejs module like the request you have to pass it to fromNodeCallback. So here I am making a request with a search term to wikipedia API and expecting the first text paragraph.

NodeJS _RxJS_observable

You can find the code in this github repository

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.