This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const brotli = require('brotli'); | |
const zlib = require('zlib'); | |
const fs = require('fs'); | |
const path = require('path'); | |
const compressDir = function (dir) { | |
console.log('Reading in: ' + dir); | |
fs.readdir(dir, function (err, files) { | |
if (err) { | |
console.error("Could not list the directory.", err); |