我应该安装哪个Node.js模块才能使用谷歌协议缓冲区?

时间:2022-05-29 06:31:03

It seems that there are a few modules available for Node.js from multiple people to work with protocol buffers. Some are more or less actively maintained. I found https://github.com/chrisdew/protobuf which seems to be working fine. But is there a tried and true (officially certified) path?

似乎有一些模块可供来自多个人的Node.js使用协议缓冲区。有些人或多或少得到积极维护。我发现https://github.com/chrisdew/protobuf似乎工作正常。但是,有没有经过验证的(官方认证的)路径?

4 个解决方案

#1


2  

There are no official implementations of Protobuf aside from Java, Python and C++. For node.js, you'll probably want to go with chrisdew since it's the one on npm. I personally use my own fork because I need to work with int64's.

除了Java,Python和C ++之外,没有Protobuf的官方实现。对于node.js,你可能想要使用chrisdew,因为它是npm上的那个。我个人使用自己的fork,因为我需要使用int64。

#2


11  

No doubt... the better,complete and beautifully designed is: Protobuf.js

毫无疑问......更好,更完整,更精美的设计是:Protobuf.js

Cheers!

#3


2  

It's worth mention protocol-buffers nodejs package as an option

值得一提的是protocol-buffers nodejs包作为选项

#4


1  

Now you already have a JS google official version. You can download it here https://github.com/google/protobuf/releases

现在你已经有了一个JS google官方版本。您可以在此处下载https://github.com/google/protobuf/releases

#1


2  

There are no official implementations of Protobuf aside from Java, Python and C++. For node.js, you'll probably want to go with chrisdew since it's the one on npm. I personally use my own fork because I need to work with int64's.

除了Java,Python和C ++之外,没有Protobuf的官方实现。对于node.js,你可能想要使用chrisdew,因为它是npm上的那个。我个人使用自己的fork,因为我需要使用int64。

#2


11  

No doubt... the better,complete and beautifully designed is: Protobuf.js

毫无疑问......更好,更完整,更精美的设计是:Protobuf.js

Cheers!

#3


2  

It's worth mention protocol-buffers nodejs package as an option

值得一提的是protocol-buffers nodejs包作为选项

#4


1  

Now you already have a JS google official version. You can download it here https://github.com/google/protobuf/releases

现在你已经有了一个JS google官方版本。您可以在此处下载https://github.com/google/protobuf/releases