functionserializer
v0.0.1
Published
A library for serializing functions
Downloads
3
Readme
functionserializer
A micro library for serializing and deserializing functions to strings
function greet(){
return "Hello World!";
}
Sometimes you need to pass this across boundries that are JSON only.
var o = functionserializer.serialize(greet);
var f = functionserializer.deserialize(o);
f(); // "Hello World!"