node-ubjson
node-ubjson copied to clipboard
Universal Binary JSON packer/unpacker for Node.js
sometimes one needs to encode documents without having a pre-allocated buffer, or without knowing how big the object will be. currently, ubjson throws if the buffer is too small: ```...
In looking at the example code you show in the readme, it shows this: ``` buffer = buffer.slice(0, offset); ``` This creates a buffer containing some binary characters near the...
Is it possible to just use something like. `ubjson -u original.json ubjson.json` ?
There should be a mirror `unpackBufferSync`