RxJS 与 rx 节点 [英] RxJS vs rx-node

查看:44
本文介绍了RxJS 与 rx 节点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

RxJSrx-node?

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

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

推荐答案

rx-node 存储库的第一行就介绍了这一点:

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

该项目为 Node.js 和 io.js 提供了 JavaScript 响应式扩展 (RxJS) 绑定,以抽象 EventEmitter、Streams 等.

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 添加了对一些节点特定事物的支持,其详细信息在其 文档页面.

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.

如果您需要这些功能,请使用 rx-node.如果没有,请使用 RxJS.由于前者扩展了后者,如果您以后改变主意,迁移路径将相当琐碎.

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.

这篇关于RxJS 与 rx 节点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆