functionserializer

0.0.1 • Public • Published

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

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i functionserializer

    Weekly Downloads

    1

    Version

    0.0.1

    License

    MIT

    Last publish

    Collaborators

    • richardanaya