read = async function (filename, compress) {
  const data = await readFile(filename + (compress ? ".gz" : ""));
  const content = compress ? await gunzip(data) : data;

  return JSON.parse(content.toString());
}
Read the contents from the compressed file.

@async
@params {String} filename
@params {Boolean} compress