0.1.5 • Published 9 years ago

jet_serializer v0.1.5

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

jetSerializer

Extended serializer for Javascript

Features of JetSerializer:

  • It could pack objects with recursion
  • lt will not paste identical objects twice and will resolve them correctly
  • It could pack Dates and RegExp's
  • It can restore class instanses
  • It covered with tests

Upcoming features

  • Support YML format
  • Generated string representation is human readable/editable
  • It works both on client and server side
  • It supprots clientside loaders (e.g. requireJs)
  • It can be plugged

Basic usage

On server

var jetSerializer = require('jet-serializer'),
    Model = require('model');

jetSerializer.registerClass('Model', Model);

var x = new Model(),
    xSer = jetSerializer.stringify(x);

console.log(xSer);

var xRestored = jetSerializer.parse(xSer);
console.log(xRestored);

Running tests

Install mocha (npm install -g mocha) and type npm test in console

0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago