node-document-serializer-msgpack

Serializer adapter msgpack for node-document ODM for Node.js.

NODE-DOCUMENT-SERIALIZER-MSGPACK

Serializer adapter msgpack for node-document ODM for Node.js.

  $ npm install node-document-serializer-msgpack

Basic:

  var Serializer = require('node-document-serializer-msgpack');
 
  var serializer = new Serializer();
 
  var object = {foo: "bar"}, data;
 
  console.log("Object: ", require('util').inspect(object), typeof object);
 
  data = serializer.serialize(object);
 
  console.log("Serialized: ", require('util').inspect(data), typeof data);
 
  object = serializer.deserialize(data);
 
  console.log("Deserialized: ", require('util').inspect(object), typeof object);

For details; see node-document.

Local tests:

  $ make test

Released under the MIT license.

Copyright (c) Jonas Grimfelt