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

Readme

Keywords

none

Package Sidebar

Install

npm i functionserializer

Weekly Downloads

0

Version

0.0.1

License

MIT

Last publish

Collaborators

  • richardanaya