import { deflate as ideflate , deflateSync , gunzip as igunzip , gunzipSync , gzip as igzip , gzipSync , inflate as iinflate , inflateSync } from "zlib" ; import { promisify } from "util" ; export const gzip = promisify ( igzip ) ; export const ungzip = promisify ( igunzip ) ; export const inflate = promisify ( iinflate ) ; export const deflate = promisify ( ideflate ) ; export { gzipSync , gunzipSync , inflateSync , deflateSync } ;