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

  return JSON.parse(content.toString());
}
async function(filename, compress) {
  const data = await readFile(filename + (compress ? ".gz" : ""));
  const content = compress ? await gunzip(data) : data;

  return JSON.parse(content.toString());
}
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
Read the contents from the compressed file .