unpack

pack / unpack functions for node.js [closed]

假如想象 提交于 2019-11-26 17:41:42
问题 Are there any modules that provide pack / unpack functionality for nodejs similar to python's struct module? I haven't found any specifically for node, and I'd assume that javascript implementations would be significantly slower. Thanks. 回答1: 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,

How to unpack all objects of a git repository?

泪湿孤枕 提交于 2019-11-26 09:36:36
问题 How can I unpack all objects of a pack file? I\'ve just cloned a remote repository, so my local repository currently doesn\'t contain any loose object, only a .pack and a .idx files. I\'ve tried running git unpack-objects < .git/objects/pack/pack-.pack , but nothing happens. I\'m doing something wrong? Is there any other command to do that? 回答1: You need to move the pack objects outside the .git/objects/pack directory before using the command. However, the pack files need to be inside the