@36node/bus-messenger 中文文档教程

发布于 4年前 浏览 22 项目主页 更新于 3年前

@36node/bus-messenger

versiondownloads

Install

yarn add module

Usage

const Messenger, { TBoxStation } = require("@36node/bus-messenger");

const tbox = new TBoxStation((data, push) => {
  push(data);
});

messenger
  .from("test")
  .pass(tbox)
  .deliver(writer);

Test

yarn test

Mac OS High Sierra / Mojave

OpenSSL 已在 High Sierra 中升级,自制软件不会覆盖默认系统库。 这意味着在构建 node-rdkafka 时,因为您使用的是 openssl,所以您需要告诉链接器在哪里可以找到它:

export CPPFLAGS=-I/usr/local/opt/openssl/include
export LDFLAGS=-L/usr/local/opt/openssl/lib

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

module © 36node,根据 MIT 许可证发布。

在贡献者 (list) 的帮助下由 36node 创作和维护。

GitHub @36node

@36node/bus-messenger

versiondownloads

Install

yarn add module

Usage

const Messenger, { TBoxStation } = require("@36node/bus-messenger");

const tbox = new TBoxStation((data, push) => {
  push(data);
});

messenger
  .from("test")
  .pass(tbox)
  .deliver(writer);

Test

yarn test

Mac OS High Sierra / Mojave

OpenSSL has been upgraded in High Sierra and homebrew does not overwrite default system libraries. That means when building node-rdkafka, because you are using openssl, you need to tell the linker where to find it:

export CPPFLAGS=-I/usr/local/opt/openssl/include
export LDFLAGS=-L/usr/local/opt/openssl/lib

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

module © 36node, Released under the MIT License.

Authored and maintained by 36node with help from contributors (list).

GitHub @36node

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文