actually, just use this: https://github.com/sindresorhus/gzip-size