truss/comm/packer.js
2018-12-23 07:56:44 -06:00

5 lines
130 B
JavaScript

export function pack(action) { return JSON.stringify(action); };
export function unpack (serial) { return JSON.parse(serial); }