New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

node-document-serializer-json

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-document-serializer-json

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

latest
Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
12
200%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

document

FAQs

Package last updated on 20 Mar 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts