An advanced serialization and deserialization system, which allows you to encode functions inside of JSON, then deserialize them back into working objects.
npm install superserialize
var serialize = require'superserialize'serializedeseralize = require'superserialize'deserialize;var TestObject =console.logname + ": Hi there!";;var serialized = serializeTestObject;console.logserialized; // This will output a JSON-compatible objectvar deserialized = deserializeserialized;deserializesayHello"Bob"; // This will output "Bob: Hi there!" as expected!
superserialize was created by Jesse Dunlap, and is licensed under the MIT license.