7 lines
307 B
JavaScript
7 lines
307 B
JavaScript
import { promisify } from 'util';
|
|
import { inflateRaw as inflateRawCb, deflateRaw as deflateRawCb } from 'zlib';
|
|
const inflateRaw = promisify(inflateRawCb);
|
|
const deflateRaw = promisify(deflateRawCb);
|
|
export const inflate = (input) => inflateRaw(input);
|
|
export const deflate = (input) => deflateRaw(input);
|