Node bindings to parse ssb messages
Provides methods to serialize / deserialize ssb-messages. Supports json and cbor serialisation / derserialisation. This is really just a node wrapper around legacy-msg-data
var {parseJson, toJson, parseCbor, toCbor} = require('ssb-json-parse-native')
Returns a js object. Identical to JSON.parse but slower (for now)
Returns a js object. Must be passed a buffer.
Returns a string. Identical to JSON.stringify but slower (for now)
Returns a buffer.
With npm installed, run
$ npm install ssb-json-parse-native
Dev Dependencies:
- rust + cargo
- cargo-make
- cmake
$ npm run prebuild
Dev Dependencies
- same as above
- cross
- dockcross
Cross compiling is still a work in progress. Still todo:
- split out scripts to cross in build-native.sh
- add script to tar up cross compiled binding with correct prebuild compatible filename
- windows builds don't work
- 32bit builds don't work because of a small issue in ssb-legacy-msg-data
LGPL-3.0