node.js - RxJS 与 rx-node

标签 node.js rxjs reactivex

RxJS 和有什么区别和 rx-node

为什么我不应该在 NodeJS 项目中使用 RxJS 而不是 rx-node?

最佳答案

rx-node 存储库在其第一行中介绍了这一点:

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

RxJS 是官方存储库。 rx-node 添加了对一些特定于 Node 的事物的支持,其详细信息在其 documentation page 中概述。 .

如果您需要这些功能,请使用 rx-node。如果没有,请使用 RxJS。由于前者扩展了后者,因此如果您稍后改变主意,迁移路径将相当简单。

关于node.js - RxJS 与 rx-node,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38155577/

相关文章:

rx-java - 如果 observable.filter().first() 什么都不返回,如何返回 Observable.empty()?

c - 理解 libuv/epoll/非阻塞网络 IO

node.js - 类型错误 : fsevents is not a constructor (already tried a bunch of answers)

javascript - Windows Azure IIS 上的 Node.js 使用 IISNode : How to set startup file?

rxjs - 如何在 Angular 5 应用程序中使用 CLI 创建新的 @ngrx 文件?

android - 如何在 rxkotlin 中链接 "Single - Completeable - Completable"?

scala - 合并后如何保留两个可观察对象发出的项目的顺序?

javascript - Node hapi 应用程序启动,但似乎未绑定(bind)到端口

angular - 如何使用 BehaviourSubjects 在 Angular 组件之间共享 API 调用的数据?

在单元测试中从 ngrx 存储中选择时,Angular .pipe 和 .subscribe 未定义