Skip to content
Serializer adapter `msgpack` for `node-document` ODM for Node.js.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
examples
lib
test
.env
.gitignore
.travis.yml
MIT-LICENSE
Makefile
README.md
index.js
package.json

README.md

NODE-DOCUMENT-SERIALIZER-MSGPACK Build Status

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

Installation

  $ npm install node-document-serializer-msgpack

Usage

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.

Test

Local tests:

  $ make test

License

Released under the MIT license.

Copyright (c) Jonas Grimfelt

Bitdeli Badge

Something went wrong with that request. Please try again.