pack / unpack functions for node.js [closed]

泪湿孤枕 提交于 2019-11-27 07:36:47

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.

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!