RxJS vs rx-node

旧巷老猫 提交于 2020-01-05 04:21:42

问题


What's the difference between RxJS and rx-node?

Why shouldn't I just use RxJS instead of rx-node in my NodeJS project?


回答1:


The rx-node repository covers this in its first line:

This project provides Reactive Extensions for JavaScript (RxJS) bindings for Node.js and io.js to abstract over the EventEmitter, Streams and more.

RxJS is the official repository. rx-node adds support for a few node specific things, the details of which are outlined on their documentation page.

If you need those features, use rx-node. If not, use RxJS. Since the former extends the latter, the migration path would be fairly trivial if you change your mind later.



来源:https://stackoverflow.com/questions/38155577/rxjs-vs-rx-node

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!