code: async function(filename, compress, result) {
    const content = JSON.stringify(result);
  
    const data = compress ? await gzip(content) : content;
    return await writeFile(filename + (compress ? ".gz" : ""), data);
  }
docs: Write contents into a compressed file.
  
  @async
  @params {String} filename
  @params {String} result