UNPKG

picorpc

Version:

A tiny RPC library and spec, inspired by JSON-RPC 2.0 and tRPC.

10 lines (9 loc) 193 B
/* MAIN */ const deserialize = (value) => { return JSON.parse(value); }; const serialize = (value) => { return JSON.stringify(value); }; /* EXPORT */ export { deserialize, serialize };