We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
https://github.com/pgriess/node-jspack 似乎是一个直接端口Python的
struct
API用于打包二进制数据,但它是用JS实现的。它似乎还没有为 npm 打包。https://github.com/substack/node-binary提供了解包,也是用JS实现的,如果您安装了 npm,则可以使用
npm install binary
安装它。https://github.com/pgriess/node-jspack appears to be a straight-up port of Python's
struct
API for packing binary data, but it's implemented in JS. It doesn't appear to be packaged for npm yet.https://github.com/substack/node-binary provides unpacking, also implemented in JS, and you can install it with
npm install binary
if you have npm installed.https://github.com/ryanrolds/bufferpack 是另一种解决方案
https://github.com/ryanrolds/bufferpack is another solution
jBinary 是该领域的另一个工具,似乎得到了积极维护(截至 2014 年末)。它包括各种知名格式的示例规范,例如 tar、ico 和 mp3。
jBinary is another tool in this space which seems to be actively maintained (as of late 2014). It includes sample specifications for a variety of well-known formats, e.g. tar, ico and mp3.