node-document-serializer-json

0.1.0 • Public • Published

NODE-DOCUMENT-SERIALIZER-JSON Build Status

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

Installation

  $ npm install node-document-serializer-json

Usage

Basic:

  var Serializer = require('node-document-serializer-json');
 
  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

Readme

Keywords

none

Package Sidebar

Install

npm i node-document-serializer-json

Weekly Downloads

1

Version

0.1.0

License

none

Last publish

Collaborators

  • grimen