0.0.1 • Published 8 years ago

functionserializer v0.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

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!"