cryo

Easily pickle/serialize/freeze/store and re-hydrate complex JavaScript objects (including Functions)

Cryo

$ npm install cryo
var Cryo = require('cryo');
 
var obj = {
  name: 'Hunter',
  hellofunction() {
    console.log(this.name + ' says hello!');
  }
};
 
var frozen = Cryo.stringify(obj);
var hydrated = Cryo.parse(frozen);
 
hydrated.hello(); // Hunter says hello!