You are reading a single comment by @Asynchronous and its replies. Click here to read the full conversation.
  • I compress an object: schedule = require("heatshrink").compress(JSON.parse(require("Storage").read("CustomSchedule.json")));
    Printing the value of schedule returns new Uint8Array([0, 2]).buffer.
    I then decompress using console.log(require("heatshrink").decompress(schedule)); and get new ArrayBuffer(2).
    How can I convert the ArrayBuffer back to an object?

About