node-pakkit
Node.JS module to read/write objects to/from buffers using concise packet definitions.
Example
First you define your attribute types and packets...
var types = 'payloadWithLength': { builder; } { parser ; } ; var packets = pakkit;
Then you can use them!
// Object -> Buffervar buffer = packetsMESSAGE; // Buffer -> Objectvar parsed = packetsMESSAGE;
More docs coming "soon", for now... see how it is used in node-zigbee
Brought to you by your friendly neighbourhood ninjas @ Ninja Blocks Inc.