truss/comm/packer.js

5 lines
130 B
JavaScript
Raw Normal View History

2018-12-23 07:56:44 -06:00
export function pack(action) { return JSON.stringify(action); };
export function unpack (serial) { return JSON.parse(serial); }